Subject GROUP BY clause is very slow
Author Hemant.Sapre@iflexsolutions.com
Hi,



I am facing problems with the GROUP BY clause. It takes a lot of time to
return with the values.



I am trying the following:

SELECT COUNT(1) FROM VW_INSERT_RIP WHERE USER_KEY = '8888'



This query takes 214 seconds to return the value - 785,000 records from
60,000,000 records.



The view internally joins 3 tables. It has index on the FUND_PRICE table
(with 60,000,000 odd records) but not on the other lighter tables.



Please help.



Regards,

Hemant.

Project Leader - Investment Banking Group

PrimeSourcing(tm) "Add Value Reduce Risk"

i-flex solutions ltd., Mumbai

Tel Office: +91-22-5642-7144

e-mail: hemant.sapre@...
<mailto:hemant.sapre@...>





DISCLAIMER:
This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.


[Non-text portions of this message have been removed]