Re: Ado SQL Concept question.
From: Brian Bushay TeamB (BBushay_at_Nmpls.com)
Date: 03/06/04
- Next message: Brian Bushay TeamB: "Re: Problem with TBetterAdoDataset and DEFAULT Statement in Fields"
- Previous message: RPM: "Re: Ado SQL Concept question."
- In reply to: RPM: "Re: Ado SQL Concept question."
- Next in thread: Richard Speiss: "Re: Ado SQL Concept question."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 05 Mar 2004 22:29:49 -0600
>At this point I'm just 'stress' testing that area of my code. Since each
>user will make their own indepenent requests, I don't see how I can cashe
>the data ahead of time. Once I get on a real database server (does MSDE
>count), I will try using stored procedures - would they help?
>
>Basically my application will need to pool the database connection, and
>serve internet users (web browsers). I have been allowed a request time of
>50ms for a single lookup. Each user/session may request information about
>any record in the database. So I'm trying to optimized the lookup area of
>my code. This lookup uses a file of only 153,000 records (100+ megs) and
>is only changed once a month. This is the simplest part of the application,
>other tasks will require multi-table lookup (joins) and multi-item
>(multi-point) - but I have 'lots' more time for those 200ms... LOL.
The answers to this is going to vary according to the database you are using.
For Access using serverside cursors in TableDirect mode and using the SEEK
method to find a record instead of a Query should be fastest way to do a lookup.
For SQL server (MDE) a query will be best.
>Oh, one key point I just thought of - this is always only READ operations -
>cursor type, maybe?
Cursor type can be forward only if you only need readonly but that won't get you
much when you are doing just single records selects.
SQL server does some tuning on the queries that get run so it can pick up some
speed
MSDE has a limit of 5 simultaneous processes so it won't be good for this
application if it gets a heavy load or records to select.
-- Brian Bushay (TeamB) Bbushay@NMPLS.com
- Next message: Brian Bushay TeamB: "Re: Problem with TBetterAdoDataset and DEFAULT Statement in Fields"
- Previous message: RPM: "Re: Ado SQL Concept question."
- In reply to: RPM: "Re: Ado SQL Concept question."
- Next in thread: Richard Speiss: "Re: Ado SQL Concept question."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|