thechazm
VBA, VB.net, C#, Java
- Local time
- Today, 11:34
- Joined
- Mar 7, 2011
- Messages
- 515
Ok so I know there are plenty of tips and tweeks out there that you can do for table performance but I cannot find the ultimate solution for this specific table.
It houses the most data in the backend and is called tblShopCode. This houses all of the schools data for everyone. I'll try to cleanly put down the table field names and their types.
[Table Structure]
*[ID] - Number - Primary Key - Indexed
One index - [Personnel Number] - Number
----------- [Course Number] - Text
[Completed] - Yes/No
[SchoolBy] - Number
[Critical] - Yes/no
[Shop] - Text
[Expire Date] - Date/Time
[Priority] - Number
[Note] - Text
[Note Date] - Date/Time
[Schedualed Date] - Date/Time
[Need to Schedule] - Yes/No
[N/A] - Yes/No
[Refresh Date] - Date/Time
[Refresh Time] - Date/Time
[Record Status] - Number
[Record Load Date] - Date/Time
The problem comes into play when everyday I have to check these records against another system and apply the changes in this table if there is a change then inform the user and the individuals of the change.
The performance hit comes from when I search for the record using
[Personnel Number] and [Course Number]. Then also when it has I have to do .update to update that record.
The table itself has 187785 records. When I had only less than 80,000 it worked just fine so I am guessing its from the indexing but I don't know what more to do.
Any help on this is appreciated.
Thanks,
TheChazm
It houses the most data in the backend and is called tblShopCode. This houses all of the schools data for everyone. I'll try to cleanly put down the table field names and their types.
[Table Structure]
*[ID] - Number - Primary Key - Indexed
One index - [Personnel Number] - Number
----------- [Course Number] - Text
[Completed] - Yes/No
[SchoolBy] - Number
[Critical] - Yes/no
[Shop] - Text
[Expire Date] - Date/Time
[Priority] - Number
[Note] - Text
[Note Date] - Date/Time
[Schedualed Date] - Date/Time
[Need to Schedule] - Yes/No
[N/A] - Yes/No
[Refresh Date] - Date/Time
[Refresh Time] - Date/Time
[Record Status] - Number
[Record Load Date] - Date/Time
The problem comes into play when everyday I have to check these records against another system and apply the changes in this table if there is a change then inform the user and the individuals of the change.
The performance hit comes from when I search for the record using
[Personnel Number] and [Course Number]. Then also when it has I have to do .update to update that record.
The table itself has 187785 records. When I had only less than 80,000 it worked just fine so I am guessing its from the indexing but I don't know what more to do.
Any help on this is appreciated.
Thanks,
TheChazm