[
https://issues.apache.org/jira/browse/MARMOTTA-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13778795#comment-13778795
]
Sebastian Schaffert commented on MARMOTTA-324:
----------------------------------------------
A good library for this purpose can be found here:
https://github.com/cowtowncoder/java-uuid-generator
> Create random IDs for database primary keys
> -------------------------------------------
>
> Key: MARMOTTA-324
> URL: https://issues.apache.org/jira/browse/MARMOTTA-324
> Project: Marmotta
> Issue Type: Bug
> Components: Triple Store
> Reporter: Sebastian Schaffert
> Assignee: Sebastian Schaffert
> Fix For: 3.2
>
>
> The current implementation for generating database keys in the
> kiwi-triplestore is based on either database sequences (safe method, but
> slow) or in-memory sequences (fast method, but does not allow concurrent
> database access). We should also add an implementation that is both fast and
> reasonably safe by generating random long IDs using a reliable algorithm. For
> example, we could use UUID.getLeastSignificantBits() to create this ID.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira