[Kde-pim] ItemFetchJob - Only fetching items which have a payload

Kevin Krammer krammer at kde.org
Thu May 23 19:22:25 BST 2013


On Thursday, 2013-05-23, Vishesh Handa wrote:
> Hey guys
> 
> In the Akonadi Nepomuk Feeder we have this ItemFetchJob which fetches all
> the items in a collection, and then sends them for indexing if they aren't
> already indexed.
> 
> The problem is that many of these items often do not have a payload, so
> when we try to fetch the payload in order to index its contents, the fetch
> fails. This skews the progress and results in the akonadi feeder attempting
> to fetch a large number of payload-less items on startup.
> 
> Is there any way to only fetch the items which have a payload in a cache,
> but not fetch the actual payload?

Not sure I understand you correctly, but are you looking for 
Item::cachedPayloadParts()?

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20130523/8b597e26/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list