Lentidão em uma consulta simples firebird

1. Lentidão em uma consulta simples firebird

Adriano Henrique Xavier Bispo
AdrianoCebola

(usa Solaris)

Enviado em 08/06/2016 - 13:55h

Bom dia,
estou com um problema no firebird que já procurei de todas as formas entender e nada. Espero que vocês me ajudem, o problema é o seguinte:

Existe uma tabela no meu banco que uso em um select simples:

select count(v.cod_pneu) qtde  
from op_vulca v
where
v.encerrado<>'S'
and v.cod_auto = 1



Esse select funciona perfeitamente, só que de tempos em tempos ele simplesmente trava. Sem explicação. E apenas volta a funcionar com backup e restore do banco.
Alguém já passou por essa situação?

Estatistificas do Banco:

Database header page information:
Flags 0
Checksum 12345
Generation 29720510
Page size 4096
ODS version 11.2
Oldest transaction 28541648
Oldest active 28548576
Oldest snapshot 28548576
Next transaction 28548577
Bumped transaction 1
Sequence number 0
Next attachment ID 1193934
Implementation ID 16
Shadow count 0
Page buffers 0
Next header page 0
Database dialect 3
Creation date Feb 27, 2012 9:39:44
Attributes force write, multi-user maintenance

Variable header data:
Sweep interval: 20000
*END*

Estatísticas da tabela:

OP_VULCA (332)
Primary pointer page: 753, Index root page: 754
Data pages: 10981, data page slots: 16977, average fill: 52%
Fill distribution:
0 - 19% = 4557
20 - 39% = 125
40 - 59% = 106
60 - 79% = 492
80 - 99% = 5701

Index FK_OP_VULCA_1 (1)
Depth: 2, leaf buckets: 101, nodes: 62841
Average data length: 0.00, total dup: 62838, max dup: 23555
Fill distribution:
0 - 19% = 0
20 - 39% = 1
40 - 59% = 37
60 - 79% = 43
80 - 99% = 20

Index FK_OP_VULCA_3 (2)
Depth: 2, leaf buckets: 102, nodes: 62841
Average data length: 0.00, total dup: 62840, max dup: 62840
Fill distribution:
0 - 19% = 0
20 - 39% = 1
40 - 59% = 41
60 - 79% = 39
80 - 99% = 21

Index FK_OP_VULCA_OP_CADPNEU (3)
Depth: 3, leaf buckets: 338, nodes: 62841
Average data length: 6.30, total dup: 9, max dup: 1
Fill distribution:
0 - 19% = 25
20 - 39% = 0
40 - 59% = 271
60 - 79% = 41
80 - 99% = 1

Index FK_OP_VULCA_OP_INIAUTO (4)
Depth: 2, leaf buckets: 82, nodes: 64027
Average data length: 0.57, total dup: 58941, max dup: 1185
Fill distribution:
0 - 19% = 0
20 - 39% = 0
40 - 59% = 3
60 - 79% = 1
80 - 99% = 78

Index PK_OP_VULCA (0)
Depth: 3, leaf buckets: 374, nodes: 62841
Average data length: 18.35, total dup: 0, max dup: 0
Fill distribution:
0 - 19% = 0
20 - 39% = 0
40 - 59% = 1
60 - 79% = 0
80 - 99% = 373

Espero que alguém me ajude... Pois não encontrei nada que me esclarecesse porque isso acontece.
Obrigado!


  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts