docs(diigo-cache): open issue 10, page storage drift
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
0116ccd0d2
commit
9a15fb2a86
1 file changed
+35
@@ -136,3 +136,38 @@ In [IBIS](https://github.com/dckc/vattr97/wiki/IBIS) notation: `?` issue, `?!` r
|
|||||||
values or headers, so the cookie never appears
|
values or headers, so the cookie never appears
|
||||||
? 9b. how does anyone notice a refresh failing (expired cookie)?
|
? 9b. how does anyone notice a refresh failing (expired cookie)?
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### ? 10. Do we need to store diigo page numbers?
|
||||||
|
|
||||||
|
```
|
||||||
|
? 10. Do we need to store diigo page numbers?
|
||||||
|
. pages come from load_user_items with sort=updated, newest first; each
|
||||||
|
new or edited bookmark shifts the rest down one slot, a deletion up one
|
||||||
|
. only page 1 is refetched (every 3h, refetchThrough 1), so pages 2 and
|
||||||
|
on are snapshots from the first fill (2026-10-14)
|
||||||
|
. items are keyed by item_id; page_members records each page's positions
|
||||||
|
. consequences, seen 2026-10-29:
|
||||||
|
. k new bookmarks leave k items on no page: a gap in paged views
|
||||||
|
. an edited bookmark is listed on page 1 and at its stale position
|
||||||
|
. summing logged page items (16,767 private) counts snapshots, not items
|
||||||
|
. a deletion is never noticed; its row stays
|
||||||
|
. week views (?days=, ?in=) query items by date, so they're unaffected
|
||||||
|
: 10a. keep pages as stored snapshots (today)
|
||||||
|
+ read-through: viewing a page not yet filled fetches it
|
||||||
|
- the drift above
|
||||||
|
: 10b. store only items; a page number is just the fill's cursor
|
||||||
|
. each page-table read has a replacement:
|
||||||
|
. refresh depth (deepestPageSince): items updated since the cutoff,
|
||||||
|
/ 100, rounded up, + 1 page of slack for shifts
|
||||||
|
. invalidateRecent: not needed
|
||||||
|
. knownTotal: keep diigo's latest total as one kv value
|
||||||
|
. completeness (pagesThrough): a "full pass done" flag on the fill job
|
||||||
|
. paged public view: items order by updated desc, limit/offset
|
||||||
|
. page dump (HIT/MISS): fetch live; it's a debugging tool
|
||||||
|
+ paged views get no gaps or duplicates
|
||||||
|
+ last_seen per item: after a full pass, items not seen were deleted
|
||||||
|
or made private on diigo
|
||||||
|
+ fetched_at per item says more than pages.etched_at
|
||||||
|
- views past the filled part come back short until the fill gets there
|
||||||
|
- a schema migration
|
||||||
|
```
|
||||||
Reference in new issue
Block a user