Thanks and questions...
От | George Robinson II |
---|---|
Тема | Thanks and questions... |
Дата | |
Msg-id | 39820C03.DA10C111@eurekabroadband.com обсуждение исходный текст |
Ответы |
Re: Thanks and questions...
|
Список | 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. ?
В списке pgsql-general по дате отправления: