Re: Efficient Way to Merge Two Large Tables
От
Joshua Rubin
Тема
Re: Efficient Way to Merge Two Large Tables
Дата
Msg-id
AANLkTimNJGymgddXVXizOd84CSjtGfI1MUPfWP5st_iZ@mail.gmail.com
Ответ на
Re: Efficient Way to Merge Two Large Tables (Ben Chobot)
Список
Дерево обсуждения
Efficient Way to Merge Two Large Tables Joshua Rubin <jrubin@esoft.com>
Re: Efficient Way to Merge Two Large Tables Julian Mehnle <julian@mehnle.net>
Re: Efficient Way to Merge Two Large Tables Joshua Rubin <jrubin@esoft.com>
Re: Efficient Way to Merge Two Large Tables Joshua Rubin <jrubin@esoft.com>
Re: Efficient Way to Merge Two Large Tables "Daniel Verite" <daniel@manitou-mail.org>
Re: Efficient Way to Merge Two Large Tables Ben Chobot <bench@silentmedia.com>
Re: Efficient Way to Merge Two Large Tables Joshua Rubin <jrubin@esoft.com>
HI Ben, > Stupid question before you do this: is there a reason the design was split like this? For instance, if the table with the id and the single field get updated a lot, while the other table almost never changes, maybe this design isn't so bad. We just wanted to minimize changes to table1, thats why table2 was added as a separate table and not a new column. Now we need to index items in table1 with the column in table2 because some queries are much too slow and would be sped up greatly with this change. In retrospect, we should have just added a column to table1. Now, we have all the data, we just need to move it from table2 to table1. Thanks, -- Joshua Rubin
В списке pgsql-general по дате отправления