[odb-users] Index on subtable column "index"

Tim Tao Tim.Tao at akunacapital.com
Mon Sep 21 11:41:23 EDT 2015


Hi Boris,

Thanks for your reply.

Another question about the subtable.

I notice all the subtables don't have primary key. I don't know if I can use the combination of parent table's primary key and "index" as the primary key of the subtable? Is there any reason we don't want to do that.

Thanks !

Tim
________________________________________
From: Boris Kolpackov <boris at codesynthesis.com>
Sent: Monday, September 21, 2015 10:01 AM
To: Tim Tao
Cc: odb-users at codesynthesis.com
Subject: Re: [odb-users] Index on subtable column "index"

Hi Tim,

Tim Tao <Tim.Tao at akunacapital.com> writes:

> I got a question about ODB subtable, so when we declare a container,
> e.g vector, in an ODB object, it will create a subtable for this
> container and a new column "index" with it, which is a very good
> design I think, but I am wondering why ODB will also add an index
> on this "index" column, is there any performance consideration?

Yes, the SELECT statement that loads the elements of the container,
has the 'ORDER BY index' clause.

Boris
________________________________
 [http://www.akunacapital.com/images/akuna.png]
Tim Tao | Junior Developer

    | www.akunacapital.com <http://www.akunacapital.com>
p:  | m:  | f:  | tim.tao at akunacapital.com

Please consider the environment, before printing this email.

This electronic message contains information from Akuna Capital LLC that may be confidential, legally privileged or otherwise protected from disclosure. This information is intended for the use of the addressee only and is not offered as investment advice to be relied upon for personal or professional use. Additionally, all electronic messages are recorded and stored in compliance pursuant to applicable SEC rules. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, printing or any other use of, or any action in reliance on, the contents of this electronic message is strictly prohibited. If you have received this communication in error, please notify us by telephone at (312)994-4640 and destroy the original message.



More information about the odb-users mailing list