Subject | Re: Firebird 2.0 Indexing |
---|---|
Author | buppcpp |
Post date | 2005-05-31T21:05:42Z |
GROUP BY are even worst than distincts.
ex. SELECT store_no FROM mytable GROUP BY store_no;
This takes ~4 mins!!
mytables has ~2.1 millions records.
Table design is:
ID VARCHAR(16) (PK)
STORE_NO INTEGER (PK)
.
.
.
I also have an index on STORE_NO only.
My current system only takes 5 secs to perform this same query.
DISTINCT and GROUP BY must be looked at, it's killing this database!
Thanks
--- In firebird-support@yahoogroups.com, Daniel Rail <daniel@a...>
wrote:
ex. SELECT store_no FROM mytable GROUP BY store_no;
This takes ~4 mins!!
mytables has ~2.1 millions records.
Table design is:
ID VARCHAR(16) (PK)
STORE_NO INTEGER (PK)
.
.
.
I also have an index on STORE_NO only.
My current system only takes 5 secs to perform this same query.
DISTINCT and GROUP BY must be looked at, it's killing this database!
Thanks
--- In firebird-support@yahoogroups.com, Daniel Rail <daniel@a...>
wrote:
> Hi,than
>
> At May 29, 2005, 08:18, buppcpp wrote:
>
> > Were the changes to the indexes in 2.0 suppose to provide more
> > larger indexes?optimizer
>
> I think there is. And, there has been some changes in the
> as well.just
>
> > The reason I'm asking is because some of my queries still run
> > as slow in 2.0 as they did 1.5.2.not,
>
> Now, it's the time to give the feedback while FB 2.0 is still in
> development.
>
> > Will these types of indexing issues be taken care of 2.0, if
> > when?done
>
> FB 2 is still in alpha, and all reporting related to it should be
> in the Firebird-devel group on Sourceforge, until it is officiallygets
> released.
>
> > I for one would prefer to have the indexing system fixed in 2.0,
> > because I think we may need to sit on it for awhile, while 3.0
> > all of it's bugs knocked out. Plus, 3.0 will have the sameof
> > problems, if it's not taken care of now, but with the overhead
> > SMP code (for 1 CPU systems).in
>
> I don't think there will be much overhead, if any, for SMP support
> Superserver. Since the changes in Vulcan are that the thread
> scheduling will be managed by the OS and not by FB.
>
> --
> Best regards,
> Daniel Rail
> Senior Software Developer
> ACCRA Consultants Inc. (www.accra.ca)
> ACCRA Med Software Inc. (www.filopto.com)