[Nepomuk] Review Request: New GraphMaintainer class which removes empty graphs
Vishesh Handa
handa.vish at gmail.com
Mon Aug 8 14:36:14 UTC 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102214/#review5507
-----------------------------------------------------------
nepomuk/services/storage/graphmaintainer.cpp
<http://git.reviewboard.kde.org/r/102214/#comment4936>
Or
select ?g ?mg where { ?g a nrl:InstanceBase . OPTIONAL { ?mg nrl:CoreGraphMetadataFor ?g . graph ?g { ?r ?p ?o. } } FILTER(!bound(?r) || !bound(?p) || !bound(?o)) . } LIMIT 100
This seems to be faster, but just by around 10-20 milliseconds. It's difficult to determine which query is faster.
- Vishesh
On Aug. 4, 2011, 2:43 p.m., Sebastian Trueg wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/102214/
> -----------------------------------------------------------
>
> (Updated Aug. 4, 2011, 2:43 p.m.)
>
>
> Review request for Nepomuk.
>
>
> Summary
> -------
>
> The new GraphMaintainer is created at startup and will slowly remove empty graphs which are left over from the pre-DMS days. It uses a delay between each removal operation to not impose on the user's work at all. Thus, it takes forever to remove the graphs but that is no big deal.
>
>
> Diffs
> -----
>
> nepomuk/services/storage/CMakeLists.txt 75f6fd8
> nepomuk/services/storage/graphmaintainer.h PRE-CREATION
> nepomuk/services/storage/graphmaintainer.cpp PRE-CREATION
> nepomuk/services/storage/repository.cpp ce0d385
>
> Diff: http://git.reviewboard.kde.org/r/102214/diff
>
>
> Testing
> -------
>
> Tested manually: all empty graphs removed.
>
>
> Thanks,
>
> Sebastian
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/nepomuk/attachments/20110808/29691fe6/attachment.html>
More information about the Nepomuk
mailing list