Hi Thomas,

i run following command

ANALYZE SAMPLE_SIZE 0

result is :

Update count: 0
(356975 ms)

SELECT DISTINCT(CATEGORY) FROM DATATBL

(146 rows, 3096 ms)

thnx buddy..

cheers to H2 team :-) :-) :-) :-)

its really fast now

i have question


???????????????

i have many DB having 2-3 million of records


its all one time insert and there can be small updates later on

major is selection

how do i fast my select queries

do i need to run  "ANALYZE SAMPLE_SIZE 0" always after all insert

how does it affect performance ????














On Nov 5, 6:35 am, "Thomas Mueller" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> Did you run ANALYZE?
>
> Regards,
> Thomas
>
>
>
> On Tue, Nov 4, 2008 at 12:56 PM, Dhruv Patel <[EMAIL PROTECTED]> wrote:
>
> > Hi thomas,
>
> > i am using H2 1.0.70.
>
> > i have only one table "DATATBL"
>
> > having 8 columns
>
> > total "3862753" rows
>
> > wheni fire this query
>
> > SELECT DISTINCT(CATEGORY) FROM DATATBL
>
> > the result was "(146 rows, 327446 ms--  327 seconds)" on web console
>
> > my column is having index and type is varchar(20)
>
> > why does it is so slow??- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to