Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
[libcontacts] Remove sorting from incidental fetch queries
The order of contact processing in update queries has no relevance.
  • Loading branch information
matthewvogt committed Dec 10, 2013
1 parent 2070b9d commit 2ddb41e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/seasidecache.cpp
Expand Up @@ -1517,7 +1517,6 @@ bool SeasideCache::event(QEvent *event)
// we only want to retrieve aggregate contacts that have changed
m_fetchRequest.setFilter(filter & aggregateFilter());
m_fetchRequest.setFetchHint(basicFetchHint());
m_fetchRequest.setSorting(m_sortOrder);
m_fetchRequest.start();

m_fetchProcessedCount = 0;
Expand All @@ -1539,7 +1538,6 @@ bool SeasideCache::event(QEvent *event)

m_fetchRequest.setFilter(filter & aggregateFilter());
m_fetchRequest.setFetchHint(presenceFetchHint());
m_fetchRequest.setSorting(m_sortOrder);
m_fetchRequest.start();

m_fetchProcessedCount = 0;
Expand Down Expand Up @@ -1580,7 +1578,6 @@ bool SeasideCache::event(QEvent *event)
// as the favorites store, so we don't update any favorite with a smaller data subset
m_activeResolve = &resolve;
m_fetchRequest.setFetchHint(resolve.requireComplete ? basicFetchHint() : favoriteFetchHint(m_fetchTypes));
m_fetchRequest.setSorting(m_sortOrder);
m_fetchRequest.start();

m_fetchProcessedCount = 0;
Expand Down

0 comments on commit 2ddb41e

Please sign in to comment.