473,395 Members | 1,999 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

should i index linked fields

Should I index fields that are linked to another table???

Note:
- all links are ref. enforced

- all links are one-to-many

- I have some links of type A
small list with a byte ID (of which the size is only one byte) links to
many items in a large lists (e.g. one country to many contacts)

- I have some links of type B
large lists with an Long Integer (autonumber) ID link to another large
lists (e.g. one client to several contacts)

Thank you in advance - Nicolaas

---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.700 / Virus Database: 457 - Release Date: 06/06/2004
Nov 13 '05 #1
6 1516
On Wed, 9 Jun 2004 14:11:13 +1200, "WindAndWaves" <ac****@ngaru.com>
wrote:

No.
Access already did this for you, behind hte scenes.
Think if it didn't; how slow some apps would be, and how poorly Access
would show in comparative reviews.

-Tom.

Should I index fields that are linked to another table???

Note:
- all links are ref. enforced

- all links are one-to-many

- I have some links of type A
small list with a byte ID (of which the size is only one byte) links to
many items in a large lists (e.g. one country to many contacts)

- I have some links of type B
large lists with an Long Integer (autonumber) ID link to another large
lists (e.g. one client to several contacts)

Thank you in advance - Nicolaas

---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.700 / Virus Database: 457 - Release Date: 06/06/2004


Nov 13 '05 #2
Dear Tom,

Thank you for your reply.

When you say 'behind the scenes' does that mean that it the index is not
listed when you open the index dialog in the table design view or that the
index can not be deleted/added from VBA?

A while ago, you see, I went through my database and deleted all the
indexes, except the ones I deemed imperative. I left out the ones described
in the original post, because I was not sure if this was necessary.

Thank you.

- Nicolaas


---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.700 / Virus Database: 457 - Release Date: 06/06/2004
Nov 13 '05 #3
On Wed, 9 Jun 2004 14:29:59 +1200, "WindAndWaves" <ac****@ngaru.com>
wrote:

They are not listed in the Indexes window, but they are in the Indexes
collection.

Doei,

-Tom.
Dear Tom,

Thank you for your reply.

When you say 'behind the scenes' does that mean that it the index is not
listed when you open the index dialog in the table design view or that the
index can not be deleted/added from VBA?

A while ago, you see, I went through my database and deleted all the
indexes, except the ones I deemed imperative. I left out the ones described
in the original post, because I was not sure if this was necessary.

Thank you.

- Nicolaas


---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.700 / Virus Database: 457 - Release Date: 06/06/2004


Nov 13 '05 #4
So, when I ran a function that deleted all indexes out of the database, they
would have been deleted also???
---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.700 / Virus Database: 457 - Release Date: 06/06/2004
Nov 13 '05 #5
On Wed, 9 Jun 2004 16:05:04 +1200, "WindAndWaves" <ac****@ngaru.com>
wrote:

Why not take 10 seconds and confirm that for yourself rather than
asking:
?currentdb.tabledefs("my_table").Indexes.Count

-Tom.

So, when I ran a function that deleted all indexes out of the database, they
would have been deleted also???
---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.700 / Virus Database: 457 - Release Date: 06/06/2004


Nov 13 '05 #6
Well, Tom, I did check that. Thank you for that.

It is very interesting. Because there is always one more index then there
is listed in the index dialog form that you can open in the design table
view.

Spooky! Would this be the linked one?

Should I conclude that it is not necessary to make indexes for linked
fields, because Access already does this by itself?


---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07/06/2004
Nov 13 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
20
by: Neil | last post by:
I have an Access 2000 MDB file with a SQL 7 back end. I have a main table with 50,000 records; and I have a selections table with 50,000 records for each machine that uses the database (about...
2
by: deko | last post by:
The last 4 lines seem to be screwing up.... any suggestions welcome! - - - - - - - - - - - - - - Dim db As Database Dim tdf As TableDef Dim idxPk As Index Dim idxFld As Field Set tdf =...
7
by: smd | last post by:
Hello and thanks for taking the time to read this. I've looked all over the web and newsgroups and can't find a solution to my problem. I've posted this question to the Access 2000 group as well -...
2
by: bobby_b_ | last post by:
I have a table where fields 1 and 2 make up the primary key. Because of this, I have a unique composite index on fields 1 and 2 (as required by DB2). Now my question is: Fields 1 and 2 are also...
3
by: Janelle.Dunlap | last post by:
I have a table in my database that is linked to an excel spreadsheet. I need to be able to manipulate the data in this linked table so that I can create smaller normalized tables that work with...
0
by: cmd | last post by:
Hi, I have a query based on Table-A which populates most of the pages of a tab control. On two of the pages, however, I would like to have fields from Table-B. There's too many fields in this...
2
by: hapnendad | last post by:
The code below attempts to create a record in the tables listed and populating the PAR field (Primary Key) in each when a new project is added. The code adds rows to the tables but, the number of...
3
by: ischwartz88 | last post by:
Hi. I have written a script that searches through every field in every table in a given database. It works fine in most databases, however, when I run it in a database with Linked tables, the script...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.