Subject | Re: GROUP BY clause is very slow |
---|---|
Author | Ali Gökçen |
Post date | 2005-10-10T08:18:29Z |
>time to
> I am facing problems with the GROUP BY clause. It takes a lot of
> return with the values.where is the "group by" ???
>
> I am trying the following:
>
> SELECT COUNT(1) FROM VW_INSERT_RIP WHERE USER_KEY = '8888'
>
>from
> This query takes 214 seconds to return the value - 785,000 records
> 60,000,000 records.214 secods is perfect result for such ugly-dummy usage.
>
This fast result refreshed my FB love again.
>table
> The view internally joins 3 tables. It has index on the FUND_PRICE
> (with 60,000,000 odd records) but not on the other lighter tables.where is the view? your codes will help us more than your
>
descriptions.
Ok, i can get it from you via telepathy but it makes Helen angry.
>Help? how?
>
> Please help.
>
>
"hey help me, i wrote some bad SQL codes and it works as unexpected"
I did count your rows in a few seconds. i wrote a new SQL command.
but i forgot to paste it in this mail like u. ;)
Regards.
Ali
>
> 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@i...
> <mailto:hemant.sapre@i...>
>