Re: The fastest way to update thousands of rows in moderately sized table
| От | twoflower |
|---|---|
| Тема | Re: The fastest way to update thousands of rows in moderately sized table |
| Дата | |
| Msg-id | 1437725924621-5859203.post@n5.nabble.com обсуждение |
| Ответ на | Re: Re: The fastest way to update thousands of rows in moderately sized table (林士博 <lin@repica.co.jp>) |
| Ответы |
Re: Re: The fastest way to update thousands of rows in
moderately sized table
|
| Список | pgsql-general |
Thank you, I will look into those suggestions. Meanwhile, I started experimenting with partitioning the table into smaller tables, each holding rows with ID spanning 1 million values and using this approach, the UPDATE takes 300ms. I have to check if all the SELECTs I am issuing against the original table keep their performance, but so far it seems they do, if the appropriate indexes are present on the child tables. I was worried about the overhead of each query having to go through all (currently) 58 partition tables, but it seems like it's not that big of a deal. -- View this message in context: http://postgresql.nabble.com/The-fastest-way-to-update-thousands-of-rows-in-moderately-sized-table-tp5859144p5859203.html Sent from the PostgreSQL - general mailing list archive at Nabble.com.
В списке pgsql-general по дате отправления: