in reply to performance with mysql / file-caching / hash reference on demand
In addition to what afoken said, try adding indices to your table.
CREATE INDEX CT_Media_Relations_ix_SupplierID ON CT_Media_Relations (SupplierID); CREATE INDEX CT_Media_Relations_ix_SupplierPID ON CT_Media_Relations (SupplierPID); -- etc
Indices will somewhat slow down write queries (INSERT, etc) but can have a huge improvement on read queries (SELECT, etc).
Any primary keys will already be indexed, but any other columns containing numbers, dates, and short strings which you frequently filter, sort, or group by should probably be indexed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: performance with mysql / file-caching / hash reference on demand
by derion (Sexton) on May 02, 2021 at 12:24 UTC | |
by Your Mother (Archbishop) on May 02, 2021 at 14:26 UTC |