U
UJ
I have an app that I've already written that works just great. It's a
window's explorer like app for our data. Problem is, to build the treeview
takes too long (30 secs and upward for less than 1000 records). And the
database is only going to be getting bigger.
Here's essentially what I do:
Get three tables that are related (I don't make the relationship locally)
Start stepping through table 1.
Find all of the records from table 2 that have a value from the table 1
record.
Start stepping through those records.
Find all of the records from table 3 that have the value from the
record in table 2.
Now the way I pare down the records is with filters. I assume that's what's
taking so long because the records don't have any indexes.
How can I speed this up? Would setting up a relationship between the tables
speed it up? Is there a way to create an index on the records so they will
take much less time to find the records they need?
TIA - Jeff.
window's explorer like app for our data. Problem is, to build the treeview
takes too long (30 secs and upward for less than 1000 records). And the
database is only going to be getting bigger.
Here's essentially what I do:
Get three tables that are related (I don't make the relationship locally)
Start stepping through table 1.
Find all of the records from table 2 that have a value from the table 1
record.
Start stepping through those records.
Find all of the records from table 3 that have the value from the
record in table 2.
Now the way I pare down the records is with filters. I assume that's what's
taking so long because the records don't have any indexes.
How can I speed this up? Would setting up a relationship between the tables
speed it up? Is there a way to create an index on the records so they will
take much less time to find the records they need?
TIA - Jeff.