Skip to main content
add tags, clean up
Source Link
Erwin Brandstetter
  • 670.5k
  • 160
  • 1.2k
  • 1.3k

How to speed up insertion performance in postgresqlPostgreSQL

I am testing postgresqlPostgres insertion performance. I have a table with one column with number as its datatypedata type. There is an index on it as well. I filled the database up using this query:

insert into aNumber (id) values (564),(43536),(34560) ...

I inserted 4 million rows very quickly 10,000 at a time with the query above. After the database reached 6 million rows performance drastically declined to 1 Million rows every 15 min. Is there any trick to increase insertion performance? I need optimal insertion performance on this project. Thanks

Info:
Windows 7 Pro
5 GB ram

Using Windows 7 Pro on a machine with 5 GB RAM.

How to speed up insertion performance in postgresql

I am testing postgresql insertion performance. I have a table with one column with number as its datatype. There is an index on it as well. I filled the database up using this query:

insert into aNumber (id) values (564),(43536),(34560)...

I inserted 4 million rows very quickly 10,000 at a time with the query above. After the database reached 6 million rows performance drastically declined to 1 Million rows every 15 min. Is there any trick to increase insertion performance? I need optimal insertion performance on this project. Thanks

Info:
Windows 7 Pro
5 GB ram

How to speed up insertion performance in PostgreSQL

I am testing Postgres insertion performance. I have a table with one column with number as its data type. There is an index on it as well. I filled the database up using this query:

insert into aNumber (id) values (564),(43536),(34560) ...

I inserted 4 million rows very quickly 10,000 at a time with the query above. After the database reached 6 million rows performance drastically declined to 1 Million rows every 15 min. Is there any trick to increase insertion performance? I need optimal insertion performance on this project.

Using Windows 7 Pro on a machine with 5 GB RAM.

Source Link
Luke101
  • 65.8k
  • 89
  • 248
  • 378

How to speed up insertion performance in postgresql

I am testing postgresql insertion performance. I have a table with one column with number as its datatype. There is an index on it as well. I filled the database up using this query:

insert into aNumber (id) values (564),(43536),(34560)...

I inserted 4 million rows very quickly 10,000 at a time with the query above. After the database reached 6 million rows performance drastically declined to 1 Million rows every 15 min. Is there any trick to increase insertion performance? I need optimal insertion performance on this project. Thanks

Info:
Windows 7 Pro
5 GB ram