Subject | Re: time series and FB/IB |
---|---|
Author | Jan Pomahac <honza@ekc.cz> |
Post date | 2002-12-10T14:56:02Z |
--- In ib-support@yahoogroups.com, Svein Erling Tysvaer
<svein.erling.tysvaer@k...> wrote:
Another question which comes to my mind is this data table structure:
pk integer,
series_id integer, (FK)
time timestamp,
value double precision
This would result in table with 350 000 000 rows and very fast
growing (45 000 000 row/year). Can FB/IB handle such tables?
Jan Pomahac
<svein.erling.tysvaer@k...> wrote:
> At 13:23 10.12.2002 +0000, you wrote:series_id
> > > The series table could be a good idea, but don't use the
> >as part of the PK of another table. Use a generator to populatethe PK,
> >never use composite primary keys.then.
> >
> >Why? I think that index on "series_id" would have low selectivity,
>wrong
> Of course you can have an index with series_id, and there's nothing
> with an index (series_id, PK) - I just didn't like it being part ofthe PK.
> When I learnt database programming at school in the late 80s, weused
> composite keys, but when I started using Interbase in late 1998 Iwas told
> that meaningless keys populated by generators was the way to go.Why? I
> never actually asked that question, just started using such keys(as usual,
> I haven't been 100% obedient in all cases). But I have made me somethoughts.
>keys or
> 1) Meaningless keys mean less trouble if the meaningful, visible
> the database structure changeway to
> 2) Atomic keys makes it simpler to link to other tables
> 3) Atomic keys are shorter, hence I suspect databases designed that
> be marginally faster with joined queriesknow what
> 4) Ann and/or Helen says it is the way to go, and they normally
> they are talking about ;o)OK, but
>
> My reasoning is no argument to change any small system that works
> for complex systems that isn't working as they ought to or istedious to
> maintain, I think one ought to stick to atomic keys rather thancomposite ones.
>I'll try both aproaches and will see the results.
> Set
Another question which comes to my mind is this data table structure:
pk integer,
series_id integer, (FK)
time timestamp,
value double precision
This would result in table with 350 000 000 rows and very fast
growing (45 000 000 row/year). Can FB/IB handle such tables?
Jan Pomahac