Data Access Worldwide Knowledge Base
Article ID 2001 Article Title INFO: Field Length and Indexes Article URL http://www.dataaccess.com/kbasepublic/kbprint.asp?ArticleID=2001 KBase Category PERVASIVE.SQL Date Created 04/26/2004 Last Edit Date 04/26/2004
Article Text
QUESTION:
How does field length influence the performance when long fields are used in indexes?
ANSWER:
Using the embedded database, the actual length of ASCII index segments "matters" because it increases the key length, which increases the number of levels, which increases the amount of index blocks that have to round-trip for all index operations - in other words, excessive index length can be expensive.
However, in Pervasive.SQL this doesn't really matter, at least not in the same way, because all index operations take place at the server. There is a limit to the number of total segments in PSQL (but you wouldn't be changing that) and there is a limit on where in the record layout indexed fields must live (but you wouldn't be changing that either).
Contributed By:
Stephen Meeley
Company: Data Access Worldwide
Web Site: http://www.dataaccess.com
Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.
The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.