Article View: borland.public.cppbuilder.database.ado
Article #186Creating composite primary-keys or indexes at run-time...
From: Vladimir Stefanovic
Date: Thu, 31 May 2007 18:53
Date: Thu, 31 May 2007 18:53
31 lines
1831 bytes
1831 bytes
I have MS Access database/table with attributes: 1. Word (text) 2. Lang (bool) 3. Translation (text) It has 270,000 records. * Database without any indexes and PKs is about 17MB (6MB compressed) * Database *with* just indexes on Word and Lang is about 23MB (8MB compressed) * Database *with* PK on Word and Lang is about 23MB (8MB compressed) (I suppose that in this case indexes are made by default) SQL response is dramatically slower without indexes. I have to deploy this DB with the installation procedure, and I want to save this 2MB ( 8MB - 6MB ). The idea is to deploy the database without idexes and than make composite PK (Word+Lang), or just indexes on Word and Lang at run-time, during installation procedure. The question is how to make (composite in this case) PKs or indexes at run-time? I'm using ADO. -- Best Regards, Vladimir Stefanovic
Technical Details
Message-ID:
<465f19ac@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,73386e07f30a2d6f,start X-Google-Attributes: gid10698b,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu> Newsgroups: borland.public.cppbuilder.database.ado Subject: Creating composite primary-keys or indexes at run-time... Date: Thu, 31 May 2007 20:53:32 +0200 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 87.116.181.111 Message-ID: <465f19ac@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1180637612 87.116.181.111 (31 May 2007 11:53:32 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail