From: | George Robinson II <george(dot)robinson(at)eurekabroadband(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Thanks and questions... |
Date: | 2000-07-28 22:41:07 |
Message-ID: | 39820C03.DA10C111@eurekabroadband.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I'm new to postgres, but I've quickly become a big fan. Thank you for
such a great project and I hope in the future to be able to contribute
to the effort.
I'm a newbie to the list and as such, I haven't have much of a change
to lurk. I hope my explanation isn't too long and my questions aren't
too forward.
I am currently working on a project where I need to create a program
that will create a table, add rows to that table, and update another
table with info about the newly created table. For those who may know,
the information is generated by something that is very much like
cflowd. Essentially, every hour (or what ever you specify), a
compressed, pipe-delimited flat file is written to disk with information
about network usage. This is happening on a beefy computer - ultra
sparc, 4x400Mhz processors, 1G of RAM.
My goal is to import these files into the database. During the busiest
times of the day, I expect that there will be 100,000/hr in a month or
so.
The two issues are epoch time and performance. I've read in the
mailing list archives and read a similar thread: "Importing data w/ Unix
timestamp." In a previous project, I had a flat file, I imported it
into a temporary table, and then moved it to it real table to add
timestamp info. I did this using perl DBI. While the performance on
that that was great, it would be unacceptable for 100,000 insert a hour.
What approach would be the most efficient way to accomplish this goal?
With what language or tools would you recommend? If I were to leave the
time as a int4, epoch time, what would the select look like to return
other time formats?
Thanks for your help!!
-g2
Oh... a couple off topic questions. Where can I read more about
libpgeasy? (Bruce: thanks for writing this and your book!) Does any
one know of any web sites that would have more examples of postgresql
tasks, projects, etc. ?
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-07-28 22:53:41 | Re: Thanks and questions... |
Previous Message | Steve Wolfe | 2000-07-28 22:30:40 | Re: PG vs. Oracle for larger databases |