Hallo,
ich lasse meine Datenbank auf einen zweiten Server replizieren, funktioniert einwandfrei. Nur leider sind meine Querys dann auf die Replizierte Datenbank äusserst unperformant. Beispiel:
MAIN Database Query: EXPLAIN ANALYZE SELECT COUNT(*) FROM table
"Aggregate (cost=308192.10..308192.11 rows=1 width=0) (actual time=2692.836..2692.836 rows=1 loops=1)"//
" -> Seq Scan on cc_calllog (cost=0.00..297863.28 rows=4131528 width=0) (actual time=0.027..2385.615 rows=4180503 loops=1)"//
"Total runtime: 2692.899 ms"/
REPLICATION Database Query: EXPLAIN ANALYZE SELECT COUNT(*) FROM table
"Aggregate (cost=308192.10..308192.11 rows=1 width=0) (actual time=240072.810..240072.819 rows=1 loops=1)"
" -> Seq Scan on cc_calllog (cost=0.00..297863.28 rows=4131528 width=0) (actual time=52.830..187640.158 rows=4179487 loops=1)"
"Total runtime: 240073.050 ms"
Was könnte die Ursache dafür sein?
Ich hoffe Ihr könnt mir helfen.
Danke!