mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-06 04:52:55 +00:00
large tenant oltp benchmark: reindex with downtime (remove concurrently) (#11498)
## Problem our large oltp benchmark runs very long - we want to remove the duration of the reindex step. we don't run concurrent workload anyhow but added "concurrently" only to have a "prod-like" approach. But if it just doubles the time we report because it requires two instead of one full table scan we can remove it ## Summary of changes remove keyword concurrently from the reindex step
This commit is contained in:
@@ -145,11 +145,14 @@ def run_database_maintenance(env: PgCompare):
|
||||
END $$;
|
||||
"""
|
||||
)
|
||||
|
||||
log.info("start REINDEX TABLE CONCURRENTLY transaction.transaction")
|
||||
with env.zenbenchmark.record_duration("reindex concurrently"):
|
||||
cur.execute("REINDEX TABLE CONCURRENTLY transaction.transaction;")
|
||||
log.info("finished REINDEX TABLE CONCURRENTLY transaction.transaction")
|
||||
# in production a customer would likely use reindex concurrently
|
||||
# but for our test we don't care about the downtime
|
||||
# and it would just about double the time we report in the test
|
||||
# because we need one more table scan for each index
|
||||
log.info("start REINDEX TABLE transaction.transaction")
|
||||
with env.zenbenchmark.record_duration("reindex"):
|
||||
cur.execute("REINDEX TABLE transaction.transaction;")
|
||||
log.info("finished REINDEX TABLE transaction.transaction")
|
||||
|
||||
|
||||
@pytest.mark.parametrize("custom_scripts", get_custom_scripts())
|
||||
|
||||
Reference in New Issue
Block a user