rvesse opened a new pull request, #2401:
URL: https://github.com/apache/jena/pull/2401
Calling `RDFParser.toDatasetGraph()` creates a fresh transactional
`DatasetGraph` and then proceeds to using it without transactions meaning every
triple/quad output is a separate auto-committed write transaction. This
behaviour is changed to place the entire parsing process inside a write
transaction to boost performance.
GitHub issue resolved #2400
This is a combination of proposed solution 2 and 3 from #2400. The code is
changed to use the freshly minted `Dataset` or `DatasetGraph` inside of a
transaction and the corresponding Javadoc on the `toDataset()` and
`toDatasetGraph()` methods note that supplying your desired implementation of
those interfaces to the relevant `parse()` method may be preferable.
- [x] Tests are included.
- [x] Documentation change and updates are provided for the [Apache Jena
website](https://github.com/apache/jena-site/)
- [x] Commits have been squashed to remove intermediate development commit
messages.
- [x] Key commit messages start with the issue number (GH-xxxx)
By submitting this pull request, I acknowledge that I am making a
contribution to the Apache Software Foundation under the terms and conditions
of the [Contributor's
Agreement](https://www.apache.org/licenses/contributor-agreements.html).
----
See the [Apache Jena "Contributing"
guide](https://github.com/apache/jena/blob/main/CONTRIBUTING.md).
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]