<table><tr><td style="">mkoller created this revision.<br />Restricted Application added a project: KDE PIM.<br />Restricted Application added a subscriber: KDE PIM.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D5652" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>To avoid running into the "multiple merge candiate" problem when akonadi searches items by RID and for whatever reason there are really duplicate RIDs, instead when we already have an item ID from the DB, avoid using a Create job at all and answer a fetch with a Modify Job. Akonadi will then query this item by the given id, which is unique and we can never get multiple items in return. <br />
Also a query by id is faster since it's indexed.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R165 Akonadi </div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5652" rel="noreferrer">https://phabricator.kde.org/D5652</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/agentbase/resourcebase.cpp</div></div></div><br /><div><strong>To: </strong>mkoller, dvratil<br /><strong>Cc: </strong>KDE PIM, dvasin, ach, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>