-
Notifications
You must be signed in to change notification settings - Fork 49
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
I've a ton of JSON that really, really hates to follow a schema #6
Comments
Hi, 5 Gigs of data is quite a bit. I would, in any case, add it in multiple smaller chunks. I am assuming that the data is stored in one or multiple files on disk. I can think of 3 different ways on how the data could be added:
In general: the power of a graph database lies in its ability to store highly connected data. It sounds as if your data uses primarily keys which might be better stored in a normal key-value store. However, if you do want to store it as a graph (e.g the advancement of the blockchain could be modelled as edges) you would need to form small objects of key value pairs. In EliasDB the keys must be strings while the values can be anything. The value of the "key" and "kind" attribute should also be a string. (It is currently a bug that the "key" attribute value must be a string). Node values can contain any (and all) JSON data. If you embed EliasDB in an own Go program you can even store slices and object structures. In fact anything which can be serialized with gob. |
aha! Okay that was a really huge tip right there about storing slices and object blocknum:returnfromcurl that wouldn't really get me anywhere in terms of it I'd need to break it down into more granular units like: blocknum contains userid or....? But that's really, really good to know about golang embedded DBs. I'm Jacob Gadikian On Mon, Oct 3, 2016 at 7:47 PM, Matthias Ladkau notifications@github.com
|
It's blockchain data, and there's a key that contains an array, and the keys in that array are almost always different. This blockchain is advancing rapidly, and I can't really say if things will even out too soon (which would enable me to make some kind of struct for this array). So, I noticed the cool trick with the JSON import:
Will this work for any and all JSON?
Say I have 5 gigs of JSON.... what is the best way to feed it to elias?
The text was updated successfully, but these errors were encountered: