I've used Clipper5.2/FW2.5/Comix.
I would like to scope the databse by cmxSetScope(..,..) but some records is not the continue records.
example
-----------
Index on type+upper(name) tag ....
Type Name
----- --------------------
A John
A Jim
B Jonatan
B Sim
C Jane
How can I use scope to get all name with "J" from above index by do not use array, because the record is greater than 100,000 records.
Regards,
Dutch
How can we get the record like "Multi scope"?
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: How can we get the record like "Multi scope"?
You can't. Just create an index on upper(name) and use it to set a scope on "J".
EMG
EMG
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Solution to almost all your indexes.
Dutch:
Why don't you index on Name and create bitmaps for the Type field ?
You will have just one index and the same number of bitmaps as of types.
You'll reap the benefits of faster processing and less index maintenance. The only overhead (small) is when you add/update records that you have to update the bitmap for the particular type.
Remember to update / create the bitmaps when re-indexing or indexing your files.
Why don't you index on Name and create bitmaps for the Type field ?
You will have just one index and the same number of bitmaps as of types.
You'll reap the benefits of faster processing and less index maintenance. The only overhead (small) is when you add/update records that you have to update the bitmap for the particular type.
Remember to update / create the bitmaps when re-indexing or indexing your files.