What is Nostr?
david / David
npub1u5n…ldq3
2025-01-19 23:15:29

david on Nostr: The neo4j graph database query language, cypher, can add nodes one at a time using a ...

The neo4j graph database query language, cypher, can add nodes one at a time using a command like:

MERGE (n:NostrEvent {id:”abc123”})

But for a large number of nostr events, it’s much more performant to create a csv file, one row per event, and load them all at once with a command like:

LOAD CSV FROM 'file:////neo4jExport.csv' AS row MERGE (n:NostrEvent {id: row[0]})

In addition to the event id property, other properties can be included, e.g.:
pubkey: row[1], created_at: row[2], kind: row[3]
Author Public Key
npub1u5njm6g5h5cpw4wy8xugu62e5s7f6fnysv0sj0z3a8rengt2zqhsxrldq3