Results 1 to 3 of 3

Thread: Char 36 primary key's impact on performance

  1. #1
    frozendry is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Philippines
    Posts
    33

    Default Char 36 primary key's impact on performance

    Hi Everyone,

    Anyone can help me with this?

    Avoiding key collisions would incur a little extra database overhead in terms of disk space and performance.
    How can I justify that using char 36 ID following the Sugar Default than using Int as primary?

  2. #2
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: Char 36 primary key's impact on performance

    I don't know exactly what reason made sugar uses 36 chars as key instead of a integer values (with auto increment as example).
    But some behaviors are:
    - Each module has a single key prefix, and it makes each key unique in entire db, not just on that table.
    - It also permits sugar works with Flex related fields, that based in a record key is possible to look in each module/table these records come in.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  3. #3
    frozendry is offline Sugar Community Member
    Join Date
    Oct 2009
    Location
    Philippines
    Posts
    33

    Default Re: Char 36 primary key's impact on performance

    Hi,

    May I request test results files or documents showing performance statistics with the current sugarcrm setup (char 36 ID as primary key)

    Thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Soap Char Encoding Issues
    By ralfbs in forum Developer Help
    Replies: 2
    Last Post: 2010-06-02, 06:57 AM
  2. Replies: 0
    Last Post: 2009-08-20, 12:28 PM
  3. Gantt char for Project module
    By GVAdmin in forum General Discussion
    Replies: 0
    Last Post: 2009-01-14, 01:13 PM
  4. Replies: 3
    Last Post: 2006-09-13, 10:48 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
  •