T
The Dude
Hello all,
I would really appreciate any comments on how to improve the following
design, and if possible the speed.
I have a table with three fields : an establishment number (text), a date of
transaction and the amount (currency, euros). Each establishment has one
transaction a month, and the table is about 3 millions rows now.
Indexes are on Establishment number (with duplicates), and transaction date
(with duplicates). Would it improve speed to set one on the amount?
Should I put a primary key (knowing that I refer to other tables with the
establishment number, on a one to many basis)?
Would it improve the speed if I set the text field from 50 to 16?
Should I make separate tables in regards of the transaction year?
Thanks in advance
T_D
I would really appreciate any comments on how to improve the following
design, and if possible the speed.
I have a table with three fields : an establishment number (text), a date of
transaction and the amount (currency, euros). Each establishment has one
transaction a month, and the table is about 3 millions rows now.
Indexes are on Establishment number (with duplicates), and transaction date
(with duplicates). Would it improve speed to set one on the amount?
Should I put a primary key (knowing that I refer to other tables with the
establishment number, on a one to many basis)?
Would it improve the speed if I set the text field from 50 to 16?
Should I make separate tables in regards of the transaction year?
Thanks in advance
T_D