On Jan 22, 2008 10:15 AM, Alexander Wright <<a href="mailto:silverfish@wright-family.me.uk">silverfish@wright-family.me.uk</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tuesday 22 January 2008 09:55:23 Dave Stubbs wrote:<br>> On my box this takes several hours for the latest planet, and spends at<br>> least an hour with no output as postgres is indexing the data.
<br><br></div>I've not seen the insert code, so please ignore me if this is done already!<br>I believe that if you are importing large amounts of data, its usually better<br>to drop indexes on a table, insert the data, the recreate the indexes
<br>afterwards.<br><br>I'm quite prepared to believe there is a good reason for not doing this,<br>though.<br><br></blockquote><div><br>I think this is effectively what it's doing (it uses a postgres COPY statement too). Unfortunately there are about 10 million ways in the DB being added to GIST index, and it takes a while on my box as there's only 1GB RAM.
<br><br>I haven't looked at that part of the code in much detail either... I'm guessing it isn't doing anything particularly silly though, and before the tiger import it worked in a very reasonable amount of time.
<br><br></div></div>