Results 1 to 1 of 1

Thread: Sugar SQL performance problems

  1. #1
    vicdan is offline Member
    Join Date
    Sep 2007
    Posts
    6

    Default Sugar SQL performance problems

    Hi all,

    I am hoping someone in the community would be able to help me with a pretty unpleasant Sugar performance problem. We have over a million leads in our DB, and some operations (such as updating a lead record for example, or even simply pulling it up) take minutes: I did a test just now, it was 4 minutes each, I tried again after restarting the MySQL server, 2 minutes each -- and that's with nobody else on the server! We are using Sugar 4.5.1e (yes, i am planning to upgrade, but critical performance fixes should already be in there).

    The short of it is:

    1) I already tweaked the MySQL configuration to increase key buffer and query cache about ten-fold. Anything else I can do to help Sugar along?

    2) is there any reasonably easy way to profile Sugar operations, to determine exactly which actions take so much time?



    Long version:

    My current MySQL configuration is as follows (relevant section):

    key_buffer = 256M
    max_allowed_packet = 64M
    thread_stack = 512K
    thread_cache_size = 32
    query_cache_limit = 32M
    query_cache_size = 256M
    query_cache_type = 1
    table_cache = 512
    sort_buffer_size = 32M

    GUIDs are 36 bytes long, so for 1.3M records, 256M key buffer should be plenty enough, right?

    it used to be that simply doing 'select count(id) from leads', for example, took a minute or two -- with the default MySQL memory configuration. I did some performance tuning to increase key buffer and query cache sizes, and such simple operations are now basically instant; but the system overall is still very slow. One problem could be that we have only 1GB of memory in this server. Could this really be the limiting factor though? For such a relatively simple use, 1GB should be enough, right?

    if nobody knows a direct answer, can anyone give me a pointer on how to find out the performance bottleneck here? Thanks.
    Last edited by vicdan; 2008-05-15 at 03:43 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. So Long Sugar, and thanks for all the fish
    By alsutton in forum General Discussion
    Replies: 41
    Last Post: 2006-11-15, 07:57 PM
  2. Replies: 1
    Last Post: 2006-03-20, 03:29 PM
  3. Sugar Open Source 3.5.1 Available for Download
    By jnassi in forum Announcements
    Replies: 1
    Last Post: 2005-09-27, 06:43 AM
  4. Sugar Suite 3.5 Beta Now Available
    By clint in forum Announcements
    Replies: 0
    Last Post: 2005-08-01, 02:03 PM

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
  •