Re: Very slow query
- From: "tina" <nospam@xxxxxxxxxxx>
- Date: Sat, 30 Dec 2006 06:16:48 GMT
i saw your additional post re #6 below; that's good, you *do* need to set
relationships between all those parent (secondary) tables, and the child
(primary data) table - so good job there.
7. make sure that table fields that should be indexed, *are*, and fields
that don't need an index, *are not*. (only one field in the main table is
indexed for all the secondary tables, only the primary key is indexed).
i'm not following this one. are you saying that only the primary key field
in the main table is indexed? if so, try indexing the foreign key fields
(that link to those other tables) in the main table, as well.
if the above suggestions yields no improved results, then it'll be time for
you to begin a new thread, as i previously suggested you might need to do.
hth
"Alain T." <thibault.alain@xxxxxxxxx> wrote in message
news:uLD0YH4KHHA.4848@xxxxxxxxxxxxxxxxxxxxxxx
Hi Tina!Autocorrect
I followed your instructions but unfortunately, I still get the speed
problem. What I have done precisely :
1. create a new blank database and immediately turn OFF the Name
optionthe
2. import all objects from my current database into the new one I just
created.
3. compact the database.
4. remove all the Lookup fields in my main table, as you described (open
table in Design view, click on the field I want to change, thensetting
click on the Lookup tab at the bottom and change the DisplayControl
to Text Box). Done that on 21 fields of the main table.referential
5. compact the database
6. make sure my tables' relationships are correctly set up and
integrity enforced, at the table level, using the Relationshipsshow
window (didn't have to do that as I have only one main table. All the
others are for the links).
7. make sure that table fields that should be indexed, *are*, and fields
that don't need an index, *are not*. (only one field in the main table is
indexed for all the secondary tables, only the primary key is indexed).
8) in a query, add the "secondary" tables that are needed so that I can
the "text value" fields associated with the key values stored in theprimary
data table(s).in
With 14 secondary tables or less, my query runs in 1 sec or less.
With 15 " ", it takes about 2 sec.
With 16 " ", it takes about 5 sec.
With 17 " ", it takes about 20 sec.
With 18 " ", it takes about 1 minute 20 sec.
I didn't take the risk with more than that...
I didn't do yet the next steps as I am still blocked at eigth..
9) in reports, base the report on the type of query described above
(ususally).
10) in forms, base the form on the primary data table, and use combobox or
listbox controls with RowSource property set to the appropriate
secondary table, so that the user has access to the "text values" stored
the secondary table.able
Did I misunderstood something? By the way, in the query, when I added a
secondary table, it linked automatically on the good field from the main
table. And this was done perfectly for all the 21 tables. How was it
to do that as I removed all the lookup fields from the main table beforenewsgroup,
that?
Thanks!
Alain T.
"tina" <nospam@xxxxxxxxxxx> a écrit dans le message de news:
h%Hkh.591156$QZ1.395476@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
you're welcome, and good luck! :)
if you don't get the results you were hoping for after following the
suggestions i posted, don't give up. start a new thread in this
explain the problem, *and* include the steps you've taken to try to
improve
the situation. someone else may be able to help at that point.
hth
.
- Follow-Ups:
- Re: Very slow query
- From: Alain T.
- Re: Very slow query
- References:
- Very slow query
- From: Alain T.
- Re: Very slow query
- From: tina
- Re: Very slow query
- From: Alain T.
- Re: Very slow query
- From: tina
- Re: Very slow query
- From: Alain T.
- Re: Very slow query
- From: tina
- Re: Very slow query
- From: Alain T.
- Re: Very slow query
- From: tina
- Re: Very slow query
- From: Alain T.
- Very slow query
- Prev by Date: Re: Calculating Vacation Time
- Next by Date: Re: Help -- Is my there any way to not count duplicate values here?
- Previous by thread: Re: Very slow query
- Next by thread: Re: Very slow query
- Index(es):
Relevant Pages
|