On 06/05/14 15:17, Jakob Fix wrote:
> we are doing xray unit testing for our application, and one of the
> issues we run into occasionally is that even though we know that triples
> have been created and stored as triple documents, they are not always
> (but sometimes) found when executing a sparql query in the same test. by
> the way, triples are created by extracting information from an XML
> document, via a pre-commit trigger before storing the XML document
> proper. oh yes, and the document is inserted in a separate transaction.
>
> could this be due to the fact that these documents are not indexed
> immediately, but periodically?

No, it's because you insert the document containing triples in a 
separate transaction. Why don't you insert it in the same transaction if 
you're using pre-commit triggers?

John

-- 
John Snelson, Lead Engineer                    http://twitter.com/jpcs
MarkLogic Corporation                         http://www.marklogic.com
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to