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

Welcome to IWETHEY!

New DB2->Bummer
A certain company I may or may not work for invited that product's creators to demo its capabilities and fitness for a certain high volume (lots of data - low transaction rates) application (very complex queries) and they couldn't make it perform.

It just doesn't seem to be a particularly well written piece of software.

Take it for what its worth.

I remain continually dismayed at why people seem to avoid postgres (which - to be fair - probably would have failed in the aforementioned application as well). Its a perfectly serviceable and solid piece of work with great terms. At least if/when it falls over, you've still got enough in your wallet for a down payment on an oracle server (which is quite likely the only thing likely to rescue you at that point).



"Whenever you find you are on the side of the majority, it is time to pause and reflect"   --Mark Twain

"The significant problems we face cannot be solved at the same level of thinking we were at when we created them."   --Albert Einstein

"This is still a dangerous world. It's a world of madmen and uncertainty and potential mental losses."   --George W. Bush
New And porting from Postgres -> Oracle is likely to be easy
Or at least as easy as you're going to get in a DB port.
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
New I've gone the other way - not too hard - pretty close



"Whenever you find you are on the side of the majority, it is time to pause and reflect"   --Mark Twain

"The significant problems we face cannot be solved at the same level of thinking we were at when we created them."   --Albert Einstein

"This is still a dangerous world. It's a world of madmen and uncertainty and potential mental losses."   --George W. Bush
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)

Sheep. Hmm.
201 ms