You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "Sebastian Schaffert (JIRA)" <ji...@apache.org> on 2013/09/26 15:56:02 UTC

[jira] [Commented] (MARMOTTA-324) Create random IDs for database primary keys

    [ 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