╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ────────────╮ │src/ui/Home/Users.zig│ ╰─────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │40 const event_id_to_user = try DB.HashMap(.read_only).init(event_id_to_user_cursor);│ │41 │ │41 - // read the window [after, after+page_size) by index — a direct O(log n) │ │42 - // seek per entry, never scanning the whole table. ids whose user has been │ │43 - // deleted (tombstones) are skipped. │ │42 + // read the window [after, after+page_size) by index — a direct O(log n) seek │ │43 + // per entry, never scanning the whole table. deletes remove their entry (no │ │44 + // tombstones), so the window is dense. │ │45 const end = @min(after + page_size, count); │ │46 var i = after; │ │47 while (i < end) : (i += 1) { │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │47 - const id_cursor = try user_list.getCursor(@intCast(i)) orelse continue; │ │48 + const id_kv = try timestamp_to_user_id.getIndexKeyValuePair(@intCast(i)) orelse continue; │ │49 var event_id: [evt.event_id_size]u8 = undefined; │ │49 - _ = try id_cursor.readBytes(&event_id); │ │50 + _ = try id_kv.value_cursor.readBytes(&event_id); │ │51 const user_cursor = try event_id_to_user.getCursor(hash.hashInt(hash_kind, &event_id)) orelse continue;│ │52 const user_map = try DB.HashMap(.read_only).init(user_cursor); │ │53 const user_event = try evt.read(evt.User, DB, hash_kind, arena, user_map); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯