Skip to content

refactor(core): collapse SharedFrecency/SharedQueryTracker into generic SharedDb#617

Open
seuros wants to merge 2 commits into
dmtrKovalenko:mainfrom
seuros:refactor/shared-db-generic
Open

refactor(core): collapse SharedFrecency/SharedQueryTracker into generic SharedDb#617
seuros wants to merge 2 commits into
dmtrKovalenko:mainfrom
seuros:refactor/shared-db-generic

Conversation

@seuros

@seuros seuros commented Jun 20, 2026

Copy link
Copy Markdown

SharedFrecency and SharedQueryTracker are now type aliases over a single SharedDb<T: LmdbStore>, and the three wait_for_* methods share one poll_until helper. Public API unchanged;

Sorry for the negative contribution :). -60 LOC

SharedFrecency and SharedQueryTracker are now type aliases over a single
SharedDb<T: LmdbStore>, and the three wait_for_* methods share one
poll_until helper. Public API unchanged.
@seuros seuros force-pushed the refactor/shared-db-generic branch from 58648cc to 81623ee Compare June 20, 2026 21:40
@dmtrKovalenko

Copy link
Copy Markdown
Owner

this is a hard breaking change - i don't think we want to make. They are exposed to the users of SDK and separate types to make users be able to choose if they want frecency, query tracking, or both.

@dmtrKovalenko

Copy link
Copy Markdown
Owner

oh wait I actually read the code now lol

this makes sense

@seuros

seuros commented Jun 21, 2026

Copy link
Copy Markdown
Author

Ahaha, i was going to reply : It's your OWN CODE. And some comments...

I can open similar PR while i'm reading/understanding the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants