Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 1 to 10 of 28 total |
GUID question |
Mon, Jan 26 2009 4:59 AM | Permanent Link |
"James Relyea" | I am using GUIDs as my primary keys in tables. For performance reasons &
best/recommended practices with ElevateDB, does anyone know if they be case sensitive or case insensitive? jr |
Mon, Jan 26 2009 10:11 AM | Permanent Link |
Fernando Dias Team Elevate | James,
GUIDs are treated the same as a VARCHAR(38), so they can be case sensitive or case insensitive depending on the collation you specify for the column. -- Fernando Dias [Team Elevate] |
Tue, Jan 27 2009 11:46 AM | Permanent Link |
James Relyea | From a performance perspective, which are faster: sensitive or insensitive with ElevateDB?
Thanks jr Fernando Dias wrote: James, GUIDs are treated the same as a VARCHAR(38), so they can be case sensitive or case insensitive depending on the collation you specify for the column. -- Fernando Dias [Team Elevate] |
Wed, Jan 28 2009 2:09 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | James
Sensitive. The difference is that sensitive uses the table itself and insensitive writes out a temporary table to disk containing just the rows you've selected. Roy Lambert [Team Elevate] |
Sun, Feb 1 2009 7:04 AM | Permanent Link |
"Fons Neelen" | Roy,
> The difference is that sensitive uses the table itself and insensitive > writes out a temporary table to disk containing just the rows you've > selected. I could very well be wrong, but your answer is correct if it concerns result sets, but not in case of index collation. Best regards, Fons |
Sun, Feb 1 2009 9:22 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Fons
Can you expand on that because I don't understand your comment. Roy Lambert |
Sun, Feb 1 2009 3:42 PM | Permanent Link |
"Fons Neelen" | Roy,
> Can you expand on that because I don't understand your comment. Sure. The question "I am using GUIDs as my primary keys in tables. For performance reasons & best/recommended practices with ElevateDB, does anyone know if they be case sensitive or case insensitive?" was answered by you with "Sensitive. The difference is that sensitive uses the table itself and insensitive writes out a temporary table to disk containing just the rows you've selected.". And I think you mix up two separate things. With SELECT statements it can be a sensitive or an insensitive result set. One of the differences between them two is that the latter uses a temporay table and is therefore performance wise slower. Just like you stated, but the question was related to keys. Reading the manual I couldn't find anything about this regarding keys. The collation determines the sensitivity and thus whether the query is optimized or not, but this doesn't mean it uses a temp file. At least, the manual doesn't mention this at all. But, like I stated in my previous post, I could be totally wrong. Best regards, Fons |
Mon, Feb 2 2009 2:34 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Fons
I'll have to do some checking / wait for Tim's response. I wasn't aware that the collation could influence wether it was a sensitive result set or not. I thought it simply influenced optimisation. Roy Lambert |
Mon, Feb 2 2009 10:22 AM | Permanent Link |
Fernando Dias Team Elevate | Roy,
Collation can influence whether it is a sensitive result-set/cursor or not, and thus also optimisation, because you can only get a sensitive result-set/cursor if you specify a collation that does match an existing index, otherwise you will always get an insensitive cursor and also unoptimized queries. However, the question was about *case* sensitiveness not about *cursor/result-set* sensitiveness. I don't know if there is any significant difference in performance using one or the other (case sensitive or case insensitive collations), I suspect there isn't, but it's only an opinion based on my own experiences. -- Fernando Dias [Team Elevate] |
Mon, Feb 2 2009 10:54 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Fernando
Two points: 1. I took "From a performance perspective, which are faster: sensitive or insensitive with ElevateDB?" to be referring to the result set not the collation. 2. Since you've got me worried I just tried "select * from contacts where _Surname COLLATE DAN = 'smith'" and I get a sensitive result set even though the column and index are declared as ANSI_CI Roy Lambert |
Page 1 of 3 | Next Page » | |
Jump to Page: 1 2 3 |
This web page was last updated on Saturday, May 4, 2024 at 12:54 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |