Click here to Skip to main content
15,888,908 members
Home / Discussions / Database
   

Database

 
GeneralRe: I want to change the owner of the object............. Pin
under28114-Jul-05 19:41
under28114-Jul-05 19:41 
GeneralRe: I want to change the owner of the object............. Pin
Christian Graus4-Jul-05 19:46
protectorChristian Graus4-Jul-05 19:46 
GeneralRe: I want to change the owner of the object............. Pin
Scott Serl5-Jul-05 12:38
Scott Serl5-Jul-05 12:38 
Generalsd Pin
Anonymous4-Jul-05 18:56
Anonymous4-Jul-05 18:56 
QuestionHow to optimise performance of retrieving multiple sql function results from DB Pin
luckyeagle4-Jul-05 12:50
luckyeagle4-Jul-05 12:50 
AnswerRe: How to optimise performance of retrieving multiple sql function results from DB Pin
Rob Graham4-Jul-05 13:14
Rob Graham4-Jul-05 13:14 
GeneralRe: How to optimise performance of retrieving multiple sql function results from DB Pin
luckyeagle4-Jul-05 14:43
luckyeagle4-Jul-05 14:43 
GeneralRe: How to optimise performance of retrieving multiple sql function results from DB Pin
Rob Graham5-Jul-05 5:56
Rob Graham5-Jul-05 5:56 
First, I would note that the autonumber columns are serving no useful purpose other than to satisfy Access's desire that you give a table a PK. They have no relation to the data in either table. Typically one would use an autonumber in one table as the foreign key in related tables to related data in different tables (in your case the related data seems to be the room number, so it might have made sense to used the resID from Researchers as a foreign key in the logs table instead of room number, this would at least have insured that all the records in Logs matched a record in Researchers - assuming that this is expected).

A join might make this a bit faster:
"select Count(*) from Logs as L inner join Researchers as R on L.room = R.room
Where r.project = 'computer vision' and L.Logtime >= [startDate] and L.LogTime <= [endDate]"
(The >=/<= operators are equivalent to the Between operator, but could be faster depending on the SQL parser)
You should also create an index on the room and logdate fields in the Logs table ( in the field properties for each, change indexed to "Yes, duplicates allowed" )

using the System.data.oledb namespace equivalents may be faster than the system.data.odbc ones, the oledb stuff is newer, and likely more optimised for .Net and the Jet engine.


256 MB is a pretty small footprint these days, you may want to insure that you aren't page swapping. Also, access is a file based database, and not a very performant one at that, so your expectations could be a bit high. You're seeing about 140 ms per query and expecting > 20. Make sure the database is compacted before running your tests, if the database is internally fragmented (from a lot of development changes or data deletion) it could markedly effect the results.




Absolute faith corrupts as absolutely as absolute power
Eric Hoffer

The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not.
Eric Hoffer

GeneralT-QL Problem Pin
WDI4-Jul-05 10:38
WDI4-Jul-05 10:38 
GeneralRe: T-QL Problem Pin
Colin Angus Mackay4-Jul-05 11:32
Colin Angus Mackay4-Jul-05 11:32 
GeneralRe: T-QL Problem Pin
WDI4-Jul-05 21:05
WDI4-Jul-05 21:05 
GeneralRe: T-QL Problem Pin
Colin Angus Mackay4-Jul-05 22:46
Colin Angus Mackay4-Jul-05 22:46 
GeneralRe: T-QL Problem Pin
WDI5-Jul-05 3:29
WDI5-Jul-05 3:29 
GeneralRe: T-QL Problem Pin
Colin Angus Mackay5-Jul-05 3:38
Colin Angus Mackay5-Jul-05 3:38 
GeneralLDAP Frontend to MSSQL Pin
MrEyes4-Jul-05 2:13
MrEyes4-Jul-05 2:13 
GeneralIMPORT ACCESS FROM SQL SERVER 2000 Pin
RajithCAlwis4-Jul-05 0:47
RajithCAlwis4-Jul-05 0:47 
GeneralRe: IMPORT ACCESS FROM SQL SERVER 2000 Pin
Rob Graham4-Jul-05 13:23
Rob Graham4-Jul-05 13:23 
GeneralRe: IMPORT ACCESS FROM SQL SERVER 2000 Pin
RajithCAlwis4-Jul-05 17:02
RajithCAlwis4-Jul-05 17:02 
GeneralParadox lock Pin
Screwtape4-Jul-05 0:29
Screwtape4-Jul-05 0:29 
GeneralRe: Paradox lock Pin
Rob Graham4-Jul-05 13:25
Rob Graham4-Jul-05 13:25 
GeneralRe: Paradox lock Pin
Screwtape4-Jul-05 21:47
Screwtape4-Jul-05 21:47 
GeneralRe: Paradox lock Pin
Rob Graham5-Jul-05 6:01
Rob Graham5-Jul-05 6:01 
GeneralFilterData Set eproblem VB.NET Pin
monageasmear3-Jul-05 21:44
monageasmear3-Jul-05 21:44 
GeneralRe: FilterData Set eproblem VB.NET Pin
asithangae4-Jul-05 20:57
asithangae4-Jul-05 20:57 
GeneralUnicode Support Pin
Mr. Naveed Butt3-Jul-05 20:44
professionalMr. Naveed Butt3-Jul-05 20:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.