Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Database Optimization and GUIDsDatabase Optimization and GUIDs
Previous
 
Next
New Post
7/16/2007 11:21 PM
 

This issue has been around for awhile...  I am a 11 year senior SQL Server Database Developer/DBA. Why is the GUID used so widely in DotNetNuke as the Primary Key (usually clustered)???

Did you know that a clustered index is basically a re-sort of the database? That basically means that using the GUID, a random "number", re-sorts the table EVERY time a new record is added.  Do you know that the more records you get in a table... (example the EventLog) ... the more performance is adversly affected.

Can we please change this in future versions (I know it'll take time and multiple versions to complete)??

 
New Post
7/17/2007 2:37 AM
 

which tables are you referring to? AFAIK GUIDs are rarely used in DotNetNuke, only by Microsoft membership ASPNET tables (an external component, we don't touch) and as additional portal identifier (not indexed). Most tables use autoincrement integers as key.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/18/2007 10:17 PM
 

You are right, most of them are int datatype, the Event Log though, does use a GUID stored as a varchar(36)... this one is a critical table and suffers from it.

Of course I'd never touch the ASPNET tables... they're betting that there won't be that many users being added on a regular basis... but I guess they were wrong. SQL Server 2005 has a new guid function that creates the GUIDs in sequence...

NEWSEQUENTIALID ( )
(at some point DotNetNuke will have to require SQL 2005 as the minimum requirement.)
 
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Database Optimization and GUIDsDatabase Optimization and GUIDs


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out