Re: inserting, index and no index - speed
| От | Tom Lane |
|---|---|
| Тема | Re: inserting, index and no index - speed |
| Дата | |
| Msg-id | 10390.992024622@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | inserting, index and no index - speed (zilch@home.se) |
| Ответы |
Re: inserting, index and no index - speed
|
| Список | pgsql-general |
zilch@home.se writes:
> I just noticed that inserting 10000 tuples in an indexed table took exactly
> the same amount of time as inserting 10000 tuples in a non-indexed table
> (194 seconds). Why is this? The difference in MySQL is about 50% longer in
> an indexed table.
Surprises me too. Which PG version, and what are the test conditions
exactly? (Table and index declarations; is table empty initially;
how is backend being driven, and what commands are issued exactly?
How many shared buffers, platform, etc)
Under PG 7.1, it's possible that your test caused no actual I/O except
to the WAL log ... but I'd still think that the volume of WAL I/O
would be greater when writing an index.
regards, tom lane
В списке pgsql-general по дате отправления: