Hello All,
I am bringing a Fox database across to PostgreSQL (pg).
It's reached 2Gb and that's that for Fox
The applications that use the database are mature and are being morphed to support pg over ODBC.
As part of the process, I have been looking at the many indexes on the main data table. The database has been tuned over the years and uses some (sensible AFAICT) performance enhancements which I haven't used or seen before.
Fox seems to be able to create an index on a field that is a 'morphed' version of the data being indexed.
For example...
Can this sort of 'super meta data' indexing be done with pg indexes? There are 4 million rows in the main data table, so I want to implement any and all speedups that I and anyone else can think up.
Best Regards, Paul.
I am bringing a Fox database across to PostgreSQL (pg).
It's reached 2Gb and that's that for Fox
The applications that use the database are mature and are being morphed to support pg over ODBC.
As part of the process, I have been looking at the many indexes on the main data table. The database has been tuned over the years and uses some (sensible AFAICT) performance enhancements which I haven't used or seen before.
Fox seems to be able to create an index on a field that is a 'morphed' version of the data being indexed.
For example...
Code:
The definition for the index POSTTOWN is...
cntry_code+ALLTRIM(UPPER(post_town))
and for index JOBID is...
RIGHT(entrycode,5)
and for index UNIQADD is...
cntry_code+UPPER(establishm)+UPPER(post_town)+UPPER(ad_l1)+UPPER(post_code)
Best Regards, Paul.