|
Мониторинг производительности
|
|||
---|---|---|---|
#18+
Кто какие выборки делает из pg_statio_user_indexes, pg_statio_user_tables . Я для себя, например, иногда делаю выборку Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12.
В представлении pg_statio_user_tables оч.много столбцов... В документации есть только это: pgsql_docspg_statio_user_tables For each table in the current database, the total number of disk blocks read from that table, the number of buffer hits, the numbers of disk blocks read and buffer hits in all the indexes of that table, the numbers of disk blocks read and buffer hits from the table's auxiliary TOAST table (if any), and the numbers of disk blocks read and buffer hits for the TOAST table's index. Собственно, что есть heap_blks_read / heap_blks_hit , idx_blks_read/idx_blks_hit, toast_blks_read/toast_blks_hit, tidx_blks_read/tidx_blks_hit ? TOAST насколько я помню используется в PG для хранения "больших" столбцов в отдельной таблице. Как я понимаю, в большинстве случаев нет смысла смотреть отдельно статистику по TOAST и не-TOAST подтаблицам, так??? Если нет, то нужно будет просто просуммировать данные из pg_statio_user_tables соотв-ие toast+не-toast? ... |
|||
:
Нравится:
Не нравится:
|
|||
09.06.2004, 15:54 |
|
Мониторинг производительности
|
|||
---|---|---|---|
#18+
.... В продолжение темы производительности и TOAST в частности. В PG в одной из последних версий (не помню в 7.2 или 7.3) появилась возможность явно указывать где будут храниться данные - в основной таблице или в toast: Код: plaintext
Описание SET STORAGE This form sets the storage mode for a column. This controls whether this column is held inline or in a supplementary table, and whether the data should be compressed or not. PLAIN must be used for fixed-length values such as integer and is inline, uncompressed. MAIN is for inline, compressible data. EXTERNAL is for external, uncompressed data, and EXTENDED is for external, compressed data. EXTENDED is the default for all data types that support it. The use of EXTERNAL will, for example, make substring operations on a text column faster, at the penalty of increased storage space. Есть у кого-нибудь реальный опыт изменения формата хранения? Что означает компрессия, кто-нибудь пробовал ее изменять? Вообще, насколько сильно SET STORAGE может повлиять на производительность (интересует в первую очередь практический опыт) . ... |
|||
:
Нравится:
Не нравится:
|
|||
09.06.2004, 16:02 |
|
|
start [/forum/topic.php?fid=53&msg=32554621&tid=2007824]: |
0ms |
get settings: |
10ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
52ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
36ms |
get tp. blocked users: |
1ms |
others: | 14ms |
total: | 146ms |
0 / 0 |