Hi,
Make
multi-column indexes, using the columns from your most typical queries, putting
the most selective columns first (ie; you don't need to make indexes with
columns in the same order as they are used in the query).
For
instance, an index on cp, effectif could likely benefit both queries; same for
an index on cp, effectif, naf. (You'd need only one of these indexes I think,
not both. Experiment to find out which one gives you most benefit in your
queries, vs. the slowdown in inserts).
Perhaps some of the single-column keys can be
dropped.
|
- [PERFORM] General performance problem! olivier HARO
- Re: [PERFORM] General performance problem! Gaetano Mendola
- Re: [PERFORM] General performance problem! Richard Huxton
- Re: [PERFORM] General performance problem! Leeuw van der, Tim
- Re: [PERFORM] General performance problem! olivier HARO
- Re: [PERFORM] General performance problem! Duane Lee - EGOVX