S
Sai Kit Tong
We developed an application library which uses Access 2000 database to
maintain look up data. Right now, whenever the library need data look up, it
opened the database and then closed it after it is done. We created a simple
test application utilizing the library. We observe a call in the library, in
which multiple data lookups (multiple open/closes) took place. All it took
was several hundreds of milliseconds. We then integrated it with the actual
application. The performance significant dropped significant - taking
multiple seconds to finish the same call. In the debugging window, we
observed multiple Win32 Thread exits each time the OleDbConnection.Close()
was executed. We didn't see those exits in the test application.
Could anyone help me to understand the reason?
Additional information in our case:
- All code in C#
- Connection string: "Provider=Microsoft.JET.OLEDB.4.0;Data Source =
lookup.mdb"
- Main application also have other objects using SqlConnection
- After taking out the repetitive Open/Close in the library, the performance
improved significantly in the main application.
maintain look up data. Right now, whenever the library need data look up, it
opened the database and then closed it after it is done. We created a simple
test application utilizing the library. We observe a call in the library, in
which multiple data lookups (multiple open/closes) took place. All it took
was several hundreds of milliseconds. We then integrated it with the actual
application. The performance significant dropped significant - taking
multiple seconds to finish the same call. In the debugging window, we
observed multiple Win32 Thread exits each time the OleDbConnection.Close()
was executed. We didn't see those exits in the test application.
Could anyone help me to understand the reason?
Additional information in our case:
- All code in C#
- Connection string: "Provider=Microsoft.JET.OLEDB.4.0;Data Source =
lookup.mdb"
- Main application also have other objects using SqlConnection
- After taking out the repetitive Open/Close in the library, the performance
improved significantly in the main application.