You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
I'm confused about this (obviously). There are two CL arguments that can be used to specify the path to the data file. Should we drop the use of -dbpath= to specify the load path for the memstore case, and just use the -triples argument?
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that may be the right thing. There isn't really a dbpath to persistence, per se.
The flipside argument could be that -triples is only defined for load(), and loading from dbpath is wrong; but then you have to ask how to load memstore.
One consistent take is to have load() only look at -triples or a passed-in value and be the put a call to load() in memstore's open() and not db open(). That makes some sense. Load() is arbiter of the triple-type flag as well (same deal: if not passed in, go to flag)
The reason will be displayed to describe this comment to others. Learn more.
We can't let memstore load the data itself since then it needs to know about quads parsing, that's why I moved loading memstore out of db.Open previously (different place, but same issue).
11c3cd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused about this (obviously). There are two CL arguments that can be used to specify the path to the data file. Should we drop the use of -dbpath= to specify the load path for the memstore case, and just use the -triples argument?
11c3cd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that may be the right thing. There isn't really a dbpath to persistence, per se.
The flipside argument could be that
-triples
is only defined forload()
, and loading from dbpath is wrong; but then you have to ask how to load memstore.One consistent take is to have load() only look at
-triples
or a passed-in value and be the put a call to load() in memstore's open() and not db open(). That makes some sense. Load() is arbiter of the triple-type flag as well (same deal: if not passed in, go to flag)11c3cd1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't let memstore load the data itself since then it needs to know about quads parsing, that's why I moved loading memstore out of db.Open previously (different place, but same issue).