Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form loads slow

Status
Not open for further replies.

Zirak

MIS
Feb 3, 2003
164
0
0
US
Hi,
I have a bacjend SQl server db and an adp front.
One of my forms that is bound to a Table with 7000 records loads very slow.
Is there any way to increase the performance of a form with indexing or other techniques?
 
In general, if you have a primary key on the table, that creates what is called a "Clustered Index", which means the data in the table is physically sorted in that order. For example, if you have a table "blah" which has 2 fields "blah_id INT PRIMARY KEY, blah_name varchar(200)", your data is stored in blah_id order.

If your query is "select blah_name from blah order by blah_name" then it's going to be slow unless you declare a second index (non-clustered) on the blah_name field. You can only have ONE clustered index per table (obviously, as the data can only be stored in one way), but you can have multiple non-clustered indexes.

This should speed up performance some.

Hope this helps,
Thanks,
Birgit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top