Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix author queries #57

Merged
merged 13 commits into from
Dec 14, 2024
Merged

Fix author queries #57

merged 13 commits into from
Dec 14, 2024

Conversation

jb55
Copy link
Contributor

@jb55 jb55 commented Dec 14, 2024

This fixes author/profile queries by adding a note_pubkey and note_pubkey_kind index

Fixes:

jb55 added 6 commits December 9, 2024 15:35
This was overkill and was using lots of memory

Signed-off-by: William Casarin <[email protected]>
This was the only thing that wasn't threadsafe. Add a simple mutex
instead of a queue so that polling is quick.

This also means we can't really return the internal subscriptions
anymore, so we remove that for now until we have a safer
interface.

Fixes: #55
Signed-off-by: William Casarin <[email protected]>
technically more accurate. we are about to introduce a new type called:

	ndb_ts_u64_id

which would be confusing if we didn't do this

Signed-off-by: William Casarin <[email protected]>
because this will make the changes nicer

Signed-off-by: William Casarin <[email protected]>
This will be the key used by our note_profile_kind indee

Signed-off-by: William Casarin <[email protected]>
This function can be used to check if a db is an index or not. We
will use this in future functions that rebuild indices.

Signed-off-by: William Casarin <[email protected]>
@jb55 jb55 linked an issue Dec 14, 2024 that may be closed by this pull request
@jb55 jb55 marked this pull request as draft December 14, 2024 05:04
jb55 added 7 commits December 13, 2024 21:06
We need these for profile queries

Signed-off-by: William Casarin <[email protected]>
Signed-off-by: William Casarin <[email protected]>
We should be specifying that we've matched the id here, not authors. Not
that this would have any effect.. but still.

Signed-off-by: William Casarin <[email protected]>
this avoids a lookup if we dont need it

Signed-off-by: William Casarin <[email protected]>
This fixes author queries

Fixes: #52
Signed-off-by: William Casarin <[email protected]>
@jb55 jb55 force-pushed the fix-author-queries branch from 7d43a29 to 3260fa1 Compare December 14, 2024 05:10
@jb55 jb55 marked this pull request as ready for review December 14, 2024 05:10
@jb55 jb55 merged commit 3260fa1 into master Dec 14, 2024
1 check passed
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.

Fix profile queries
1 participant