Replying to Avatar jb55

New features coming to #nostrdb soon:

1. Indexable cursor api

This will allow you to perform resumable and paginated queries in realtime. This will enable infinite scroll on arbitrary queries, you will also be able to index/seek into these queries at any point, which will be useful for building performant infinite timeline renderers: “render notes 5..8 in this cursor query”

These cursors will maintain a consistent view of the data within a transaction.

1. Arbitrary query filters

Query the database with an arbitrary filter function that filters results based on any logic you want. When you combine this with the cursor api, you can have infinitely scrollable queries with arbitrary complexity.

In the future, nostrscripts will also be able to be able to run inside of a query filter, enabling custom, scriptable, sharable, infinitely scrollable queries of any kind.

Avatar
Hazey 1y ago

Is nostrdb used in any relay software yet?

Reply to this note

Please Login to reply.

Discussion

Avatar
jb55 1y ago

I use it for the damus.io shortlink renderer. I thought about building a custom relay using it. One day if i get time

Avatar
jack (n/acc) 1y ago

lol I wonder how good go's c interop is

Thread collapsed
Thread collapsed