[PERFORM] in memory views

2006-05-10 Thread Thomas Vatter
is there a possibility for creating views or temp tables in memory to avoid disk io when user makes select operations? regards tom ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an

Re: [PERFORM] in memory views

2006-05-10 Thread Tino Wildenhain
Thomas Vatter schrieb: is there a possibility for creating views or temp tables in memory to avoid disk io when user makes select operations? No need. The data will be available in OS and database caches if they are really required often. If not, tune up the caches and do a regular pre select.

Re: [PERFORM] in memory views

2006-05-10 Thread Thomas Vatter
Tino Wildenhain wrote: Thomas Vatter schrieb: is there a possibility for creating views or temp tables in memory to avoid disk io when user makes select operations? No need. The data will be available in OS and database caches if they are really required often. If not, tune up the caches

Re: [PERFORM] in memory views

2006-05-10 Thread Tino Wildenhain
Thomas Vatter schrieb: Tino Wildenhain wrote: Thomas Vatter schrieb: is there a possibility for creating views or temp tables in memory to avoid disk io when user makes select operations? No need. The data will be available in OS and database caches if they are really required often. If

Re: [PERFORM] in memory views

2006-05-10 Thread Thomas Vatter
Tino Wildenhain wrote: Thomas Vatter schrieb: Tino Wildenhain wrote: Thomas Vatter schrieb: is there a possibility for creating views or temp tables in memory to avoid disk io when user makes select operations? No need. The data will be available in OS and database caches if they are

Re: [PERFORM] in memory views

2006-05-10 Thread Hakan Kocaman
] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Vatter Sent: Wednesday, May 10, 2006 12:43 PM To: Tino Wildenhain Cc: pgsql-performance@postgresql.org Subject: Re: [PERFORM] in memory views Tino Wildenhain wrote: Thomas Vatter

Re: [PERFORM] in memory views

2006-05-10 Thread Tino Wildenhain
Thomas Vatter schrieb: Tino Wildenhain wrote: ... Well you will need the equally 40 seconds to fill your hypothetical in memory table. (even a bit more due to the creation of a datastructure). So you can do the aproaches of semi materialized views (that are in fact writing into a shadow

Re: [PERFORM] in memory views

2006-05-10 Thread Thomas Vatter
Tino Wildenhain wrote: Thomas Vatter schrieb: Tino Wildenhain wrote: ... Well you will need the equally 40 seconds to fill your hypothetical in memory table. (even a bit more due to the creation of a datastructure). So you can do the aproaches of semi materialized views (that are in

Re: [PERFORM] in memory views

2006-05-10 Thread Scott Marlowe
On Wed, 2006-05-10 at 04:55, Thomas Vatter wrote: Tino Wildenhain wrote: Thomas Vatter schrieb: is there a possibility for creating views or temp tables in memory to avoid disk io when user makes select operations? No need. The data will be available in OS and database caches if

Re: [PERFORM] in memory views

2006-05-10 Thread Thomas Vatter
Scott Marlowe wrote: On Wed, 2006-05-10 at 04:55, Thomas Vatter wrote: Tino Wildenhain wrote: Thomas Vatter schrieb: is there a possibility for creating views or temp tables in memory to avoid disk io when user makes select operations?

Re: [PERFORM] in memory views

2006-05-10 Thread Scott Marlowe
On Wed, 2006-05-10 at 10:41, Thomas Vatter wrote: Scott Marlowe wrote: What happens if you do this by declaring it as a cursor and then fetching the first row? I do executeQuery(), for the resultSet I do next() and return one row, but wait, I have to review the logic in this area,

Re: [PERFORM] in memory views

2006-05-10 Thread me
is there a possibility for creating views or temp tables in memory to avoid disk io when user makes select operations? you might also want to look into materialized views: http://jonathangardner.net/PostgreSQL/materialized_views/matviews.html http://www.varlena.com/varlena/GeneralBits/64.php

Re: [PERFORM] in memory views

2006-05-10 Thread Thomas Vatter
Scott Marlowe wrote: On Wed, 2006-05-10 at 10:41, Thomas Vatter wrote: Scott Marlowe wrote: What happens if you do this by declaring it as a cursor and then fetching the first row? I do

Re: [PERFORM] in memory views

2006-05-10 Thread Scott Marlowe
On Wed, 2006-05-10 at 15:54, Thomas Vatter wrote: Yes, the difference between psql command line and application is 6 seconds to 40 seconds. It is exactly the step resultSet = excecuteQuery() that needs 40 seconds. I use next() as a cursor through the resultSet, but I fear this is not

Re: [PERFORM] in memory views

2006-05-10 Thread Dave Dutcher
Title: Message Are you using the Postgres JDBC driver? Or are you using an ODBC JDBC driver? The Postgres specific driver is usually faster. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas VatterSent: Wednesday, May 10, 2006

Re: [PERFORM] in memory views

2006-05-10 Thread Thomas Vatter
] [mailto:[EMAIL PROTECTED]] On Behalf Of Thomas Vatter Sent: Wednesday, May 10, 2006 3:54 PM To: Scott Marlowe Cc: Tino Wildenhain; pgsql-performance@postgresql.org Subject: Re: [PERFORM] in memory views Scott Marlowe wrote: On Wed, 2006-05-10 at 10:41, Thomas Vatter

Re: [PERFORM] in memory views

2006-05-10 Thread Thomas Vatter
Scott Marlowe wrote: On Wed, 2006-05-10 at 15:54, Thomas Vatter wrote: Yes, the difference between psql command line and application is 6 seconds to 40 seconds. It is exactly the step resultSet = excecuteQuery() that needs 40 seconds. I use next() as a

Re: [PERFORM] in memory views

2006-05-10 Thread Kris Jurka
On Wed, 10 May 2006, Thomas Vatter wrote: Yes, the difference between psql command line and application is 6 seconds to 40 seconds. It is exactly the step resultSet = excecuteQuery() that needs 40 seconds. I use next() as a cursor through the resultSet, but I fear this is not enough, do I

Re: [PERFORM] in memory views

2006-05-10 Thread Thomas Vatter
Kris Jurka wrote: On Wed, 10 May 2006, Thomas Vatter wrote: Yes, the difference between psql command line and application is 6 seconds to 40 seconds. It is exactly the step resultSet = excecuteQuery() that needs 40 seconds. I use next() as a cursor through the resultSet, but I fear this