Index (critical in a DB), Questions and assumptions.
Must of us come from other program where certain rules apply.
I would like to confirm those rules here in Alpha, as I would like to improve the performance of the DB.
The manual mentions all about indexing, but not what are the best options.
I am referring to tables of 100,000+ records.
1. The rec() or first ID must always be indexed Yes of course.
2. A field needed for search under �Search by key� Yes of course.
3. Which is faster, Numeric or Character Index?
4. For every field involve in a Lookup, DbSum and TableSum code, those fields must be indexed?
5. Fields involved in a set structure, Do they have to be indexed?
6. If not, what is the best scenario?
7. Why is it, that after a few codes are added to the tables and forms, Alpha makes the same field indexed multiple times?
8. Is it needed or can it be redesigned?
9. If a key field (which is indexed) is composed of 3 other fields, Do those other 3 fields, has to be indexed, besides that key field?
10. Can index be built for one time use, as needed? Like in reports or queries.
I believe the most practical, is to have the less amount of indexes.
11. On the other hand is there a limit in functionality of the amount of indexes?
12. Is Lightning Query Optimization feature used automatically (as long the fields follow the rules)?
A summary clarification will be most appreciated.
I am sure will help myself and most new comers.
Must of us come from other program where certain rules apply.
I would like to confirm those rules here in Alpha, as I would like to improve the performance of the DB.
The manual mentions all about indexing, but not what are the best options.
I am referring to tables of 100,000+ records.
1. The rec() or first ID must always be indexed Yes of course.
2. A field needed for search under �Search by key� Yes of course.
3. Which is faster, Numeric or Character Index?
4. For every field involve in a Lookup, DbSum and TableSum code, those fields must be indexed?
5. Fields involved in a set structure, Do they have to be indexed?
6. If not, what is the best scenario?
7. Why is it, that after a few codes are added to the tables and forms, Alpha makes the same field indexed multiple times?
8. Is it needed or can it be redesigned?
9. If a key field (which is indexed) is composed of 3 other fields, Do those other 3 fields, has to be indexed, besides that key field?
10. Can index be built for one time use, as needed? Like in reports or queries.
I believe the most practical, is to have the less amount of indexes.
11. On the other hand is there a limit in functionality of the amount of indexes?
12. Is Lightning Query Optimization feature used automatically (as long the fields follow the rules)?
A summary clarification will be most appreciated.
I am sure will help myself and most new comers.
Comment