Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 7 of 7 total |
Edb 2.0 : can i have a index for substring ? |
Wed, Feb 27 2008 6:21 AM | Permanent Link |
"Enrico Ghezzi" | Hi
i have a very big database only 10 string field, but Milions of records. i must search in FAST mode for words included in Field String n.1 The Filter must to be optimized by a Index. example : Field 1 value : QWERTY UIOPASD FGHJKL ZXCV BNM i need search for : WER or i need search for : WER + UIO + GHJ can make this with Dbisam 4 ? EDB 1.0 EDB 2.0 ? |
Wed, Feb 27 2008 6:58 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Enrico,
<< can make this with Dbisam 4 ? EDB 1.0 EDB 2.0 ? >> EDB (1.x or higher) can do this with a LIKE operation (LIKE '%WER%') provided that there's an index on the VARCHAR or CHAR column. However, it does have to search the entire index, so although it will be faster than a brute-force table search of the actual rows, it won't be as fast as a trailing wildcard search (LIKE 'WER%'). -- Tim Young Elevate Software www.elevatesoft.com |
Wed, Feb 27 2008 6:59 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Enrico
You can't do it in DBISAM but you should be able to in ElevateDB. You'll need to set up a full text index on the field then do something like SELECT * FROM table WHERE Field1 CONTAINS '*WER* *UIO* *GHJ*' if you want it case insensitive add COLLATE ANSI_CI to the statement. I can't remember if the wildcard either side of the search word was in 1.08 or will be in 2.0 Roy Lambert |
Thu, Feb 28 2008 7:09 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
<< I can't remember if the wildcard either side of the search word was in 1.08 or will be in 2.0 >> It's in 1.08, but I forgot to announce/document it so I announced it for 2.0 instead. -- Tim Young Elevate Software www.elevatesoft.com |
Thu, Feb 28 2008 9:23 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Tim
Had you given any thought to swapping % for * so that it looks compatible with LIKE? Roy Lambert |
Fri, Feb 29 2008 8:50 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
<< Had you given any thought to swapping % for * so that it looks compatible with LIKE? >> Actually, yes. You're referring to CONTAINS, correct ? -- Tim Young Elevate Software www.elevatesoft.com |
Fri, Feb 29 2008 9:47 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Tim
Yup Roy Lambert |
This web page was last updated on Tuesday, April 30, 2024 at 03:55 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |