Skip to content

Commit 48367b6

Browse files
committed
Reflect feedback from twitter for 0032
1 parent a60b69c commit 48367b6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

0032_how_to_speed_up_bulk_load.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ state should be done with care.
5151
If this is a new table, consider completely avoiding WAL writes during the data load. Two options (both have limitations
5252
and require understanding that data can be lost if a crash happens):
5353

54-
- Use unlogged table: `CREATE UNLOGGED TABLE …`. Unlogged tables are not archived, not replicated, they are not
55-
persistent (though, they survive normal restarts). Converting an unlogged table to a normal one takes time, because
56-
the data needs to be written to WAL. More about unlogged tables in
57-
[this post](https://crunchydata.com/blog/postgresl-unlogged-tables).
54+
- Use unlogged table: `CREATE UNLOGGED TABLE …`. Unlogged tables are not archived, not replicated, they are not persistent (though, they survive normal restarts). However, converting an unlogged table to a normal one takes time (likely, a lot – worth testing), because he data needs to be written to WAL. More about unlogged tables in [this post](https://crunchydata.com/blog/postgresl-unlogged-tables); also, see [this StackOverflow discussion](https://dba.stackexchange.com/questions/195780/set-postgresql-table-to-logged-after-data-loading/195829#195829).
5855

5956
- Use `COPY` with `wal_level ='minimal'`. `COPY` has to be executed inside the transaction that created the table.
6057
In this case, due to `wal_level ='minimal'`, `COPY` writes won't be written to WAL

0 commit comments

Comments
 (0)