Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
[performance] get all extra metadata at once if possible
Doing multiple queries for this also meant multiple model updates,
and multiple contact field parsing on the sqlite side.
  • Loading branch information
amtep committed Sep 17, 2014
1 parent ff84e74 commit 4f1473129c6a80a3ccaffc5abc0ea086b3c63f6f
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/seasidecache.cpp
@@ -1718,7 +1718,9 @@ void SeasideCache::startRequest(bool *idleProcessing)

// Load extra data items that we want to be able to search on, if not already fetched
if (unfetchedTypes & SeasideCache::FetchOrganization) {
fetchType = SeasideCache::FetchOrganization;
// since this uses allFilter(), might as well grab
// all the missing detail types
fetchType = unfetchedTypes;
m_fetchRequest.setFilter(allFilter());
} else if (unfetchedTypes & SeasideCache::FetchPhoneNumber) {
fetchType = SeasideCache::FetchPhoneNumber;

0 comments on commit 4f14731

Please sign in to comment.