You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "rvesse (via GitHub)" <gi...@apache.org> on 2023/07/19 09:07:59 UTC

[GitHub] [jena] rvesse commented on issue #1961: [question] concurrent `org.apache.jena.graph.Graph` implementations

rvesse commented on issue #1961:
URL: https://github.com/apache/jena/issues/1961#issuecomment-1641715251

   Any Graph or Dataset that uses our `Transactional` should already be thread safe if the calling code using transactions around the read/write operations on that instance i.e. [Jena Txn API](https://jena.apache.org/documentation/txn/txn.html)
   
   Now different implementations offer differing levels of concurrent access so the choice of implementation is going to depend on your usage pattern.  For example `DatasetGraphFactory.createTxnMem()` will give you an in-memory transactional `DatasetGraph` with multiple-reader single-writer (MRSW) concurrency.  Alternatively `TDB2Factory.createDataset()` gives you an in-memory transactional `Dataset` with multiple-reader and single-writer concurrency (MR+SW)
   
   If you can provide more detail on how you use the `Graph` API currently we can try and give more specific advice on how to adapt your code to use one of our `Transactional` implementations


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org