After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 306803 - getQuickMessages for "all" items has a limit of 5000 items per folder.
getQuickMessages for "all" items has a limit of 5000 items per folder.
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.2.x (obsolete)
Other All
: Normal normal
: ---
Assigned To: Sankar P
Evolution Groupwise development team
evolution[groupwise]
: 301267 307032 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-06-07 18:33 UTC by Tim Draper
Modified: 2013-09-10 14:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Uses readCursor instead of getQM for getting list of uids. (7.97 KB, patch)
2005-08-12 07:34 UTC, Sankar P
accepted-commit_now Details | Review

Description Tim Draper 2005-06-07 18:33:02 UTC
I added 6000 items to a test account.  I pulled down the items with Evolution. 
Evolution did a readCursor call and pulled down all the items correctly. 
Evolution then does a getQuickMessage call for new, modified and all items. 
This is where the problem occurs.  The getQM for all items makes a call to
wpfreadindex.  Wpfreadindex has a limit of roughly 4950 items.

1.  Evolution is making the getQM call to get new items.  This is okay and will
not hit the limit unless they have more than 4950 new items in a folder.
2.  Evolution is making the getQM call to get modified items.  This is okay and
will not hit the limit.  We have added code that tells us to start after a
specific startdate.  They can modify the startDate so they will not hit the limit.

Problem
3.  Evolution is making the getQM call to get all items.  They are doing this so
they can determine what items have been deleted.   This is where the problem
occurs.  Our index read has a 4950 item limit.  If the folder has 6000 items,
Evo will assume that items 5000-6000 have been deleted because they do not get
return information for those items.


Solution to Track Deleted Items
1.  GroupWise Events is the best way to track items that have been deleted.
2.  Another approach is to readCursors with a view of the item id.  Evo can
compare the ids in their store to the ids returned.  I will present this
information in an email and in bugzilla.
Comment 1 Harish Krishnaswamy 2005-08-04 10:08:22 UTC
The calendar/tasks component already uses readCursors instead of getQM.  I guess
the mailer can do the same.
The GW Events interface is untested and requires extensive changes to the design
- hence was consciously kept out 2.3.
Comment 2 Sankar P 2005-08-12 07:34:02 UTC
Created attachment 50606 [details] [review]
Uses readCursor instead of getQM for getting list of uids.
Comment 3 Sankar P 2005-08-23 06:18:05 UTC
*** Bug 307032 has been marked as a duplicate of this bug. ***
Comment 4 Sankar P 2005-08-23 09:17:17 UTC
*** Bug 301267 has been marked as a duplicate of this bug. ***
Comment 5 Sankar P 2005-08-24 12:47:46 UTC
Patch committed. Check with the latest sources.