Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Query Limit issues

  1. #1
    monkey is offline Sugar Community Member
    Join Date
    Jun 2006
    Posts
    36

    Default Query Limit issues

    Yesterday we were having an issue with one user that was getting a query limit error when they were trying to convert a lead. The error they were getting was:

    Error: Query limit of 5000 reached for Leads module.

    I did some searching around and found that you can up the limit for queries in the config.php file. I raised the limit to be 10,000 instead of 5,000. Things seemed to be working just fine until this morning when the same user complained that they were now getting the same error but with the value of 10,000 instead of 5,000.

    I'm wondering how you can get an additional 5,000 items in a query overnight (no new leads have been added since yesterday and I doubt that we have 10,000 leads in our system). So what query is causing this error, why does this keep coming up and is the only way around this to keep bumping up the query limit?

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Query Limit issues

    I've seen this before. Best bet is to turn off the resource management option that causes the message in the first place. Otherwise, you'll find yourself in a constant cycle of trying to figure out what the appropriate limit should be set to as it will change depending on the actions more frequently performed by people.

    To turn it off, add this to your config_override.php:

    $sugar_config['resource_management'] = NULL;
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    monkey is offline Sugar Community Member
    Join Date
    Jun 2006
    Posts
    36

    Default Re: Query Limit issues

    Thanks. That has solved our issue.

  4. #4
    rus
    rus is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    37

    Default Re: Query Limit issues

    Quote Originally Posted by monkey View Post
    Thanks. That has solved our issue.
    Hi, unfortunately I also get this problem too,
    just curious, what is the Resource Management that you are talking about ?

    Thanks,
    rus

  5. #5
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Query Limit issues

    It is a setting within Sugar. It is found in config.php and can be overridden via config_override.php.

    I am not entirely sure I understand what purpose it serves. I don't recall having seen any documentation on the topic or hearing anything about it. Best I can tell you is that it appears to be some mechanism for controlling the number of queries Sugar can use. I am guessing that's done to limit its memory footprint.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  6. #6
    rus
    rus is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    37

    Default Re: Query Limit issues

    Quote Originally Posted by Angel View Post
    It is a setting within Sugar. It is found in config.php and can be overridden via config_override.php.

    I am not entirely sure I understand what purpose it serves. I don't recall having seen any documentation on the topic or hearing anything about it. Best I can tell you is that it appears to be some mechanism for controlling the number of queries Sugar can use. I am guessing that's done to limit its memory footprint.
    thanks for your explanation Angel ..
    I really appreciate it

  7. #7
    rus
    rus is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    37

    Default Re: Query Limit issues

    Quote Originally Posted by Angel View Post
    I've seen this before. Best bet is to turn off the resource management option that causes the message in the first place. Otherwise, you'll find yourself in a constant cycle of trying to figure out what the appropriate limit should be set to as it will change depending on the actions more frequently performed by people.

    To turn it off, add this to your config_override.php:

    $sugar_config['resource_management'] = NULL;
    hi angel,

    by turn the resource management off, I only get this message after converting the leads :

    Leads: Convert Lead

    ---------------

    it supposed to be :

    Leads: Convert Lead

    # Created a new contact - [New Contact Name]
    # Created a new account - [New Account Name]

    Back To Leads
    -------------

    any idea what happen ?

  8. #8
    rus
    rus is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    37

    Default Re: Query Limit issues

    Quote Originally Posted by rus View Post
    hi angel,

    by turn the resource management off, I only get this message after converting the leads :

    Leads: Convert Lead

    ---------------

    it supposed to be :

    Leads: Convert Lead

    # Created a new contact - [New Contact Name]
    # Created a new account - [New Account Name]

    Back To Leads
    -------------

    any idea what happen ?
    and somehow the new contact that have been created is not linked to the leads.
    btw, I used the lead that already converted before.

  9. #9
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Query Limit issues

    I don't know why that would affect the lead conversion process, but does removing the line from config_override.php make the problem go away?
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  10. #10
    rus
    rus is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    37

    Default Re: Query Limit issues

    Quote Originally Posted by Angel View Post
    I don't know why that would affect the lead conversion process, but does removing the line from config_override.php make the problem go away?
    i still have the problem by removing the line from the config_override.php.

    btw when i'm having the 'Query Limit' error message, the Account and the Contact is created,
    At first I thought the 'Query Limit' error that i have was related when sugarcrm try build some link between Account/Contact and Leads. but don't know for sure ..

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Query Limit Error - Only Non-Admin Users
    By Justinb in forum Help
    Replies: 9
    Last Post: 2011-06-08, 06:31 PM
  2. Query limit of 1000 reached for EmailMan module
    By teethgrinder in forum Help
    Replies: 2
    Last Post: 2010-12-22, 07:14 PM
  3. Query limit of 250 reached for Leads module
    By dhichandler in forum Installation and Upgrade Help
    Replies: 9
    Last Post: 2008-09-15, 08:34 PM
  4. LHow to Limit the query in Listview
    By Romanzote in forum Help
    Replies: 3
    Last Post: 2007-05-03, 04:56 AM

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
  •