Results 1 to 5 of 5

Thread: Error: Query limit of 1000 reached

  1. #1
    Veritascredit is offline Sugar Community Member
    Join Date
    Jul 2011
    Posts
    27

    Default Error: Query limit of 1000 reached

    One of my sales associates gets the errors in his ECalender module when he selects month view, this does not happen in Day or week view. I contacted Lithrium, the developers of Ecalendar and they let me know that this error is not a bug but a limitation set inside Sugar.

    "Error: Query limit of 1000 reached for ECalendar module."

    1st- i'm wondering if we are doing something wrong, or is it that we have actually hit the limit of the Query search.

    My sales associate definitely does not have 1000 task,meetings. calls within the a months time table, set up (I'm not sure though if these are the only search fields for the "Query" search though either.)

    2nd - if ultimately we are doing everything right and we have hit the limit, what would be the best practice so that my sales associate can actually view his monthly schedule at and avoid getting the error message.

    Thank you for everyone's contribution!

    Glen

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Error: Query limit of 1000 reached

    1 - take it as it is, mysql sometime calculates more then 1000 result record even if there are only 100

    2- look to config.php, there is an entry like that:

    'resource_management' =>
    array (
    'special_query_limit' => 50000,
    'special_query_modules' =>
    array (
    0 => 'Reports',
    1 => 'Export',
    2 => 'Import',
    3 => 'Administration',
    4 => 'Sync',
    ),
    'default_limit' => 1000,
    ),

    Just add your module in the list of special_query_modules.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  3. #3
    Veritascredit is offline Sugar Community Member
    Join Date
    Jul 2011
    Posts
    27

    Default Re: Error: Query limit of 1000 reached

    Herald,

    Thank you very much, this worked like a charm!

    Much appreciated as always.

    Glen

  4. #4
    christianknoll's Avatar
    christianknoll is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Vienna
    Posts
    939

    Default Re: Error: Query limit of 1000 reached

    Harald,

    (2) is right but with (1) you are wrong. This is the number of queries SugarCRM submits in one roundtrip (not the number of rows returned) ... amazing that this exceeds the number but as I figured out one of the problem is the dup check in some areas ...

    christian.

    Quote Originally Posted by kuske View Post
    1 - take it as it is, mysql sometime calculates more then 1000 result record even if there are only 100

    2- look to config.php, there is an entry like that:

    'resource_management' =>
    array (
    'special_query_limit' => 50000,
    'special_query_modules' =>
    array (
    0 => 'Reports',
    1 => 'Export',
    2 => 'Import',
    3 => 'Administration',
    4 => 'Sync',
    ),
    'default_limit' => 1000,
    ),

    Just add your module in the list of special_query_modules.

  5. #5
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: Error: Query limit of 1000 reached

    Oh yes Christian you are right.

    I think the correct number of queries is something like
    q = x + n * y
    where n is the number of resulted lines.

    So the complexity value is something like O(n).

    The problem is, that the y in the above fomula depends on the current implementation. That means that it can change if you add some relations or change a listview or what else...
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Error: Query limit of 1000 reached for Accounts module
    By rakeshray in forum Developer Help
    Replies: 7
    Last Post: 2011-06-06, 05:51 AM
  2. Replies: 0
    Last Post: 2011-02-22, 05:40 PM
  3. Replies: 12
    Last Post: 2011-01-04, 04:33 AM
  4. Replies: 9
    Last Post: 2010-10-06, 12:20 PM
  5. Replies: 3
    Last Post: 2010-07-10, 08:13 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •