IWETHEY v. 0.3.0 | TODO
1,095 registered users | 1 active user | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New PostGreSQL may be on the cards again.
It depends on the state of PgCluster. I've decided I Am Going To Find Time To Test This. Clustering is a Requirement on The Checklist, don-cha-know.

Currently, PostGreSQL is being glacial at importing my data. :-/ But I shall perservere.

Wade.
"Insert crowbar. Apply force."
New For faster COPYs
Turn off all indexes, triggers, and constraints on the table. They will all slow down the import.
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
New Been trying to figure out how to do that.
Now that I've got a whole table in, I can look at pg_dump's output and see how it does it.

Ah... *that's* how to use COPY... I think I'll be writing my own dump tool to do the data migration.

Wade.
"Insert crowbar. Apply force."
New Copy is slow?
From the same box - in direct backend mode?
I found it pretty damn fast - about 1/2 as slow as Oracle's SQL/Loader in direct path mode, and Oracle was pushing hardware limits.
Or are you doing a copy from the client, which is pretty bad.
New Well, I'm doing a psql < filename.sql
My only reference point is MySQL, remember. And I'm still wrangling with data conversion...

I've made it quite a bit faster by turning off fsync and giving it more memory (raised work_mem from 1000 to 4096).

Wade.
"Insert crowbar. Apply force."
New Explain the copy command you are using
Show me exactly what you are doing.
I would hope you are staying away from CSV and using tab delimited data.


And study this page:
[link|http://www.postgresql.org/docs/8.1/interactive/sql-copy.html|http://www.postgresq...ive/sql-copy.html]

Note this text:


Do not confuse COPY with the psql instruction \\copy. \\copy invokes COPY FROM STDIN or COPY TO STDOUT, and then fetches/stores the data in a file accessible to the psql client. Thus, file accessibility and access rights depend on the client rather than the server when \\copy is used.
New I wasn't using COPY at all.
I was using INSERT. After all, that's the portable format, isn't it? :-) Besides, that's what MySQL uses for dump-n-restore. I'll be building a migration tool, I think.

Wade.
"Insert crowbar. Apply force."
New Huh?
It provides an excellant tool for very quick data migration.
And you whine about the speed of not using it.
Makes no sense.
New I didn't *know* about it. :-)
... until the last few hours. I discovered it literally minutes after the initial post about how slow the import was.

Wade.
"Insert crowbar. Apply force."
New Oh, OK
Learn it.
Use it.
Let me know if you neeed any help in working with it.
The key issue is let the Postgres backend see the files, do not load through the network.
     FullText indices in MySQL. - (static) - (17)
         Re: FullText indices in MySQL. - (admin) - (3)
             It's a political reason. - (static) - (2)
                 Boggle. - (admin) - (1)
                     Believe me, I want to try it. - (static)
         DB2->Bummer - (tuberculosis) - (12)
             And porting from Postgres -> Oracle is likely to be easy - (drewk) - (1)
                 I've gone the other way - not too hard - pretty close -NT - (tuberculosis)
             PostGreSQL may be on the cards again. - (static) - (9)
                 For faster COPYs - (admin) - (1)
                     Been trying to figure out how to do that. - (static)
                 Copy is slow? - (broomberg) - (6)
                     Well, I'm doing a psql < filename.sql - (static) - (5)
                         Explain the copy command you are using - (broomberg) - (4)
                             I wasn't using COPY at all. - (static) - (3)
                                 Huh? - (broomberg) - (2)
                                     I didn't *know* about it. :-) - (static) - (1)
                                         Oh, OK - (broomberg)

This is nothing compared to Grand Theft Auto III, because you can't steal a taxi cab, pick up somebody, then drive into the ocean with him.
112 ms