Hi,
In an existing application, I need to create different stores for
different SPARQL queries. For instance:
sem.store(undefined, cts.periodRangeQuery('system', 'ISO_CONTAINS',
period))
sem.store(undefined, cts.collectionQuery('latest'))
Some times, the same store could be reused, but it might be
challenging to refactor the application to make sure the sem.sparql()
calls that can share the same store actually share the same instance
of it (instead of just calling sem.store() twice with the same
parameters).
Is there a cost in calling sem.store() twice with the same parameters?
Does that prevent any optimisation opportunities? Or is the CTS query
passed to the store constructor evaluated every time by sem.sparql()
anyway?
Regards,
--
Florent Georges
http://fgeorges.org/
http://h2o.consulting/ - New website!
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general