Skip to content

Commit

Permalink
Change fillfactor of tables oorder and order_line to 50%.
Browse files Browse the repository at this point in the history
There is a big problem with these two tables. They receive
INSERTs, then every inserted row is UPDATEd in a batch
operation some time later. If the fillfactor is larger than
50% the benchmark is not long-term stable, because the
number of active pages in the two tables will increase.
This behavior guarantees that at some point the active
data set no longer fits into shared buffers, at which
point the performance goes down dramatically.
  • Loading branch information
wieck committed Aug 28, 2019
1 parent a9ff8c2 commit 0830c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run/sql.postgres/extraCommandsBeforeLoad.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ALTER TABLE bmsql_oorder SET (FILLFACTOR = 80);
ALTER TABLE bmsql_order_line SET (FILLFACTOR = 80);
ALTER TABLE bmsql_oorder SET (FILLFACTOR = 50);
ALTER TABLE bmsql_order_line SET (FILLFACTOR = 50);
ALTER TABLE bmsql_warehouse SET (FILLFACTOR = 50);
ALTER TABLE bmsql_district SET (FILLFACTOR = 79);
ALTER TABLE bmsql_customer SET (FILLFACTOR = 90);
Expand Down

0 comments on commit 0830c5f

Please sign in to comment.