[OSM-dev] [OSM-newbies] Should osm2pgsql create the planet_osm tables?

Jon Burgess jburgess777 at googlemail.com
Tue Jan 22 12:08:18 GMT 2008


On 22/01/2008, Alexander Wright <silverfish at wright-family.me.uk> wrote:
> On Tuesday 22 January 2008 09:55:23 Dave Stubbs wrote:
> > On my box this takes several hours for the latest planet, and spends at
> > least an hour with no output as postgres is indexing the data.
>
> I've not seen the insert code, so please ignore me if this is done already!
> I believe that if you are importing large amounts of data, its usually better
> to drop indexes on a table, insert the data, the recreate the indexes
> afterwards.

This is exactly what it does. The tables are created with no indexes.
Then it imports data for a few hours. Then after the import has
finished it spends some time creating the indexes.


    Jon




More information about the dev mailing list