View Single Post

   
  #6 (permalink)  
Old 04-19-2008, 10:42 AM
Mindaugas
 
Posts: n/a
Default Re: Dealing with big tables


> What exactly is your goal? Do you need this query to respond in under a
> specific limit? What limit? Do you need to be able to execute many instances
> of this query in less than 5s * the number of executions? Or do you have more
> complex queries that you're really worried about?


I'd like this query to respond under a specific time limit. 5s now is OK but 50s later for 10000 rows is too slow.

> Both Greenplum and EnterpriseDB have products in this space which let you
> break the query up over several servers but at least in EnterpriseDB's case
> it's targeted towards running complex queries which take longer than thisto
> run. I doubt you would see much benefit for a 5s query after the overheadof
> sending parts of the query out to different machines and then reassembling the
> results. If your real concern is with more complex queries they may make sense
> though. It's also possible that paying someone to come look at your database
> will find other ways to speed it up.


I see. This query also should benefit alot even when run in parallel on one server. Since anyway most time it spends in waiting for storage to respond.

Also off list I was pointed out about covering indexes in MySQL. But theyare not supported in PostgreSQL, aren't they?

Mindaugas

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote