Oh man.. graph databases are so cool. Why don't we have any relay powered by a graph database yet? Looks like nostr and graph dbs were made for each other.
Also, why the hell no database implements string interning by default? What a lost opportunity of speeding up all string queries.
Thread
Login to reply
Replies (15)
I had the same βwowβ thought when found out about Graph Databases in the context of social networks.
Neo4j has vector similarity search on nodes, if it is powered to a AI RAG system we can generate nice information, content, recommendations (but not overuse it like instagram or tiktok do, since nostr doesnβt want to be like them).
Also the relationship βfeatureβ between tables is upgraded on whole new level in Graph Databases compared with traditional sql databases like Oracle where you have to do joins on a middle table to achieve same thing.
I dusted off the ole gundb relay. @david
Let's go
What am I looking at? Iris?
No thats my client Rustr sending a note to a gundb nostr relay i made maybe 6 months ago.
You have a repo?
You can test if you have a local client. npm install and npm start should get you there without any hiccups.
Just set your local client to write here.
ws://127.0.0.1:7400

GitHub
GitHub - CommonSensePaine/GunDB-Relay: GunDB Relay
GunDB Relay. Contribute to CommonSensePaine/GunDB-Relay development by creating an account on GitHub.
The goal was to run this for my client when it launches. Setup 5 nodes around the globe. This solved a few issues around backups. Was hoping to also have a minimal offline sync inside my client. This way people could sign events without Internet and it syncs globally when connected.
How hard would it be to dust off your gunDB relay and start populating the graph with follows data?
I'm more than happy to continue working on it. I know theres a few issues I have. One being the websocket for read and writes. Sometimes notes don't display properly on my clients feed. I think its a data structure problem in the code. Reformatting the data to fit into graph. I can play with that. As far as follow data I think that would be possible. The relay does have http search functionality. ws for read/write, http for searching data. The http stuff work better than the ws.
Iβd love to see that happen. If you were to use it to calculate personalized trust metrics, that could be a great fit for @nosfabricaβs upcoming WoT hackathon!
#wotathon
Also: @Jay is working on a neo4j nostr relay in go and has put a lot of thought into overall graph db relays architecture. I think graph db relays could form their own special class of relay and it could be fruitful for a gunDB relay dev and neo4j relay dev to bounce ideas off each other.
Coulda been Jay, coulda been Nic. Who can tell.
Will the real Jay please stand up? π
