[Mulgara-general] Mulgara size limits
Life is hard, and then you die
ronald at innovation.ch
Tue Jul 8 06:19:55 PDT 2008
On Tue, Jul 08, 2008 at 06:07:48AM -0700, Chuck Borromeo wrote:
> I just wanted to check to see if anyone has figured out the issue I
> was encountering when I tried to load RDF/XML files larger than 98
> MB. On a side note, am I loading the files correctly? This is my
> code:
>
> // Create a factory, and connect to the server
> factory = new ConnectionFactory();
> connection = factory.newConnection(serverURI);
>
> // execute a CREATE command, myData is a URI
> connection.execute(new CreateGraph(myData));
> // execute a LOAD command
> connection.execute(new Load(dataFile, myData, true));
This looks correct.
> Do I need to run the "new CreateGraph(myData))" each time I load a
> file? Is there a method to check for the existence of a graph?
No, and no. However, creating and existing graph is a no-op, so we
always just (re)create all graphs on startup of our app.
> Also are there transaction methods I should commit after loading a
> file?
Since you're running in auto-commit mode, no. Only if you call
setAutoCommit(false) do you then need to call one of commit(),
rollback(), or setAutoCommit(true). See the docs (and wiki) for
more info.
Cheers,
Ronald
More information about the Mulgara-general
mailing list