An index, even if used rarely, can still be hugely important - for that particular query running once a month and depending on this index, without which the whole query might be lost and be a lot more expensive. I'm theoretisizing...
But seriously, from what information could you conclude an index' general usefulness or effectiveness?
Maybe tackling the problem (is there any?) from the opposite side would be more practical: are there any queries that would benefit from an index that currently doesn't exist in the format it would be needed in? Any queries misbehaving, being more expensive than expected, etc., also any tables seeing avoidable expensive sequential scans ... and what would be the SQL behind these scans?
To know whether you're having all the required indices, you'd have to start from queries and query plans.
BR,
Andreas
------------------------------
Andreas Legner
------------------------------
Original Message:
Sent: Fri January 17, 2020 07:32 AM
From: Sergio Peres
Subject: index exclusivity
One of the problems over some tables is they have old schemas, and their indexes may need to be modified!!
------------------------------
Sergio Peres
AIRC
Coimbra
Original Message:
Sent: Fri January 17, 2020 07:30 AM
From: Sergio Peres
Subject: index exclusivity
Thanks for reply,
I want to know if my indexes are effective or if they aren't usefull!!
We are using last versions >12.10.xC10.
Regards,
SP
------------------------------
Sergio Peres
AIRC
Coimbra
Original Message:
Sent: Fri January 17, 2020 07:12 AM
From: Andreas Legner
Subject: index exclusivity
Hi,
some ideas only - the question isn't very precise, and even if it would, presice answers might still not be easy:
- for whether used at all, there's a new (12.10.xC10) 'last used time' field in index partition header pages (oncheck -pt, or sysptnhdr.idx_acc_tm field SMI) -> might be spoiled by e.g. AUS?
- for how much space occupying in your bufferpools (as an indication for ...?): onstat -P
- for how much read/write activity: onstat -g ppf, or sysptprof SMI
- for some historic perspective: some sysadmin:mon_* monitor tables
HTH,
Andreas
------------------------------
Andreas Legner
Original Message:
Sent: Fri January 17, 2020 06:53 AM
From: Sergio Peres
Subject: index exclusivity
Hi,
I have several tables with different levels of use between clients. how can I identify their utilization rate and effectiveness?
Thanks for any help,
SP
------------------------------
Sergio Peres
AIRC
Coimbra
------------------------------
#Informix