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

nostrdb: update to fix profile queries #577

Merged
merged 2 commits into from
Dec 14, 2024
Merged

nostrdb: update to fix profile queries #577

merged 2 commits into from
Dec 14, 2024

Conversation

jb55
Copy link
Contributor

@jb55 jb55 commented Dec 14, 2024

before profile queries were not working at the database level, because there was no note_pubkey or note_pubkey_kind index. Now there is! So profiles should be much faster to query now, and will actually return results.

See:

There still appears to be an issue with the profile NotesHolder which is preventing it from updating, via the logic in poll_notes_into_view. The original Timeline version of this function works fine, but it looks like the NotesHolder one is broken:

Going to work on refactoring the notes holder next to fix:

jb55 added 2 commits December 13, 2024 23:35
before profile queries were not working at the database level,
because there was no note_pubkey or note_pubkey_kind index. Now there
is! So profiles should be much faster to query now, and will actually
return results.

There still appears to be an issue with the profile NotesHolder which
is preventing it from updating, via the logic in poll_notes_into_view.
The original Timeline version of this function works fine, but it looks
like the NotesHolder one is broken.

Going to work on refactoring the notes holder next to fix.

Signed-off-by: William Casarin <[email protected]>
Fixes: #576
Signed-off-by: William Casarin <[email protected]>
@jb55
Copy link
Contributor Author

jb55 commented Dec 14, 2024

Found a simple solution to:

everything seems to be working now

@jb55 jb55 marked this pull request as ready for review December 14, 2024 08:08
@jb55 jb55 merged commit 1e0228e into master Dec 14, 2024
7 checks 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.

1 participant