[Nepomuk] [RFC] Nepomuk Resource naming convention

Martin Klapetek martin.klapetek at gmail.com
Wed Feb 13 14:10:53 UTC 2013


On Wed, Feb 13, 2013 at 1:34 PM, Vishesh Handa <me at vhanda.in> wrote:

> Hey everyone
>
> As you know nepomuk follows the following naming scheme -
> nepomuk:/TYPE/UUID
>
> - TYPE is either 'res' or 'ctx'.
> - UUID is a 36 characters long generated via QUuid
>
> The UUID is supposed to be unique across one machine. It isn't meant to be
> globally unique. However, we cannot be positively sure that the uuid
> generated will be unique. So, we query nepomuk to make sure no other
> resource with the same uuid exists. This query is expensive!
>
> It consumes about 10-13% of the execution time for certain tests
> (DataManagementModelBenchmarks::storeResources_email). I would like to move
> to a much simpler naming scheme - nepomuk:/TYPE/number. The number will be
> an increasing integer which will start from 0.
>
> This way, we will not need to rely on uuid generation and won't have to
> query the database during each creation.
>
> Comments?


If the only reason we use uuid is to have unique id and we actually have to
check if it's unique or not, then I guess that beats the purpose of the
uuid, no? :)

-- 
Martin Klapetek | KDE Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/nepomuk/attachments/20130213/c4a5002c/attachment.html>


More information about the Nepomuk mailing list