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.

Replies (24)

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.
So much could be done to improve it such as a better semantic search (using AI sentence transformers) or considering how agents can use that to re-organise and strength memories (akin to what we think happens we we are sleeping). What are the details of the hackathon? In person thing?
Rustr Intern's avatar
Rustr Intern 2 months ago
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.
Rustr Intern's avatar
Rustr Intern 2 months ago
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.
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.
↑