PC Review


Reply
Thread Tools Rate Thread

How can I optimize my data for faster searches

 
 
Kelvin Beaton
Guest
Posts: n/a
 
      3rd Apr 2007
I have a table with about 200,000 records and six fields, FirstName,
LastName, SSN, DOB, Gender, AccountNumber.

I need to have about six people be able to search by FirstName, or LastName
or SSN, or DOB.

The data is static so I can give them each a copy of the database with the
data local on their PC.
I have MS SQL Server also if it would help to put the data there.

I'm thinking to use drop down list for them to search.
It would be nice if they were searching by last name, that the first name
could be in the drop down also, but if that makes things even slower, the
we'll have to live with just one field dropdown.

Any words of wisdom on how the make looking up data preactical speed wise?

Thanks

Kelvin


 
Reply With Quote
 
 
 
 
Rick Brandt
Guest
Posts: n/a
 
      3rd Apr 2007
Kelvin Beaton wrote:
> I have a table with about 200,000 records and six fields, FirstName,
> LastName, SSN, DOB, Gender, AccountNumber.
>
> I need to have about six people be able to search by FirstName, or
> LastName or SSN, or DOB.
>
> The data is static so I can give them each a copy of the database
> with the data local on their PC.
> I have MS SQL Server also if it would help to put the data there.
>
> I'm thinking to use drop down list for them to search.
> It would be nice if they were searching by last name, that the first
> name could be in the drop down also, but if that makes things even
> slower, the we'll have to live with just one field dropdown.
>
> Any words of wisdom on how the make looking up data preactical speed
> wise?
> Thanks
>
> Kelvin


Indexes on every field you are searching. Exact match searches are faster
than wild card searches. Possibly would help to compact the file
frequently.

That's about it. Database speed is all about what you have to read from the
disk. Indexes mean reading fewer bytes and compacting means the file is
better organized so the disk heads don't have to move as much.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


 
Reply With Quote
 
Allen Browne
Guest
Posts: n/a
 
      3rd Apr 2007
200k records will be just as fast in Access as any other db.

Make sure you have these 4 fields indexed.

Avoid leading wildcards. (Training wildcards can still use the index.)

Create a SQL statement that matches all the criteria entered, when the use
hits the Search button. You can build the search form like this example:
http://allenbrowne.com/ser-62.html
but don't use the leading wildcard.

With that approach, Access should be able to give you the results almost
instantaneously.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Kelvin Beaton" <kelvin at mccsa dot com> wrote in message
news:(E-Mail Removed)...
>I have a table with about 200,000 records and six fields, FirstName,
>LastName, SSN, DOB, Gender, AccountNumber.
>
> I need to have about six people be able to search by FirstName, or
> LastName or SSN, or DOB.
>
> The data is static so I can give them each a copy of the database with the
> data local on their PC.
> I have MS SQL Server also if it would help to put the data there.
>
> I'm thinking to use drop down list for them to search.
> It would be nice if they were searching by last name, that the first name
> could be in the drop down also, but if that makes things even slower, the
> we'll have to live with just one field dropdown.
>
> Any words of wisdom on how the make looking up data preactical speed wise?
>
> Thanks
>
> Kelvin


 
Reply With Quote
 
Larry Kahm
Guest
Posts: n/a
 
      4th Apr 2007
quote: " (Training wildcards can still use the index.)"

Yes, training those wild cards can be a problem - whether you are using an
index or a stick!

lol....

Allen typed his quickly and undoubtedly meant "trailing wildcards".

Larry

"Allen Browne" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 200k records will be just as fast in Access as any other db.
>
> Make sure you have these 4 fields indexed.
>
> Avoid leading wildcards. (Training wildcards can still use the index.)
>
> Create a SQL statement that matches all the criteria entered, when the use
> hits the Search button. You can build the search form like this example:
> http://allenbrowne.com/ser-62.html
> but don't use the leading wildcard.
>
> With that approach, Access should be able to give you the results almost
> instantaneously.
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Kelvin Beaton" <kelvin at mccsa dot com> wrote in message
> news:(E-Mail Removed)...
>>I have a table with about 200,000 records and six fields, FirstName,
>>LastName, SSN, DOB, Gender, AccountNumber.
>>
>> I need to have about six people be able to search by FirstName, or
>> LastName or SSN, or DOB.
>>
>> The data is static so I can give them each a copy of the database with
>> the data local on their PC.
>> I have MS SQL Server also if it would help to put the data there.
>>
>> I'm thinking to use drop down list for them to search.
>> It would be nice if they were searching by last name, that the first name
>> could be in the drop down also, but if that makes things even slower, the
>> we'll have to live with just one field dropdown.
>>
>> Any words of wisdom on how the make looking up data preactical speed
>> wise?
>>
>> Thanks
>>
>> Kelvin

>



 
Reply With Quote
 
Kelvin Beaton
Guest
Posts: n/a
 
      4th Apr 2007
thanks!


"Larry Kahm" <lkahm@nospam_heliotropicsystems.com> wrote in message
news:MpPQh.6140$be2.5965@trnddc08...
> quote: " (Training wildcards can still use the index.)"
>
> Yes, training those wild cards can be a problem - whether you are using an
> index or a stick!
>
> lol....
>
> Allen typed his quickly and undoubtedly meant "trailing wildcards".
>
> Larry
>
> "Allen Browne" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 200k records will be just as fast in Access as any other db.
>>
>> Make sure you have these 4 fields indexed.
>>
>> Avoid leading wildcards. (Training wildcards can still use the index.)
>>
>> Create a SQL statement that matches all the criteria entered, when the
>> use hits the Search button. You can build the search form like this
>> example:
>> http://allenbrowne.com/ser-62.html
>> but don't use the leading wildcard.
>>
>> With that approach, Access should be able to give you the results almost
>> instantaneously.
>>
>> --
>> Allen Browne - Microsoft MVP. Perth, Western Australia
>> Tips for Access users - http://allenbrowne.com/tips.html
>> Reply to group, rather than allenbrowne at mvps dot org.
>>
>> "Kelvin Beaton" <kelvin at mccsa dot com> wrote in message
>> news:(E-Mail Removed)...
>>>I have a table with about 200,000 records and six fields, FirstName,
>>>LastName, SSN, DOB, Gender, AccountNumber.
>>>
>>> I need to have about six people be able to search by FirstName, or
>>> LastName or SSN, or DOB.
>>>
>>> The data is static so I can give them each a copy of the database with
>>> the data local on their PC.
>>> I have MS SQL Server also if it would help to put the data there.
>>>
>>> I'm thinking to use drop down list for them to search.
>>> It would be nice if they were searching by last name, that the first
>>> name could be in the drop down also, but if that makes things even
>>> slower, the we'll have to live with just one field dropdown.
>>>
>>> Any words of wisdom on how the make looking up data preactical speed
>>> wise?
>>>
>>> Thanks
>>>
>>> Kelvin

>>

>
>



 
Reply With Quote
 
Paul Shapiro
Guest
Posts: n/a
 
      4th Apr 2007
The last time I looked an Access combo box was limited to displaying no more
than 64K items. If you have 200K people to search, you might need an
alternative plan. Either add code to the combo box OnChange event so you
don't fill the combo box until the user types a couple of characters
(reducing the row-source list to what matches the data entered so far) or
create a search form where the user fills in text fields with the criteria
and then clicks the Search button.
Paul Shapiro

"Allen Browne" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 200k records will be just as fast in Access as any other db.
>
> Make sure you have these 4 fields indexed.
>
> Avoid leading wildcards. (Training wildcards can still use the index.)
>
> Create a SQL statement that matches all the criteria entered, when the use
> hits the Search button. You can build the search form like this example:
> http://allenbrowne.com/ser-62.html
> but don't use the leading wildcard.
>
> With that approach, Access should be able to give you the results almost
> instantaneously.
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "Kelvin Beaton" <kelvin at mccsa dot com> wrote in message
> news:(E-Mail Removed)...
>>I have a table with about 200,000 records and six fields, FirstName,
>>LastName, SSN, DOB, Gender, AccountNumber.
>>
>> I need to have about six people be able to search by FirstName, or
>> LastName or SSN, or DOB.
>>
>> The data is static so I can give them each a copy of the database with
>> the data local on their PC.
>> I have MS SQL Server also if it would help to put the data there.
>>
>> I'm thinking to use drop down list for them to search.
>> It would be nice if they were searching by last name, that the first name
>> could be in the drop down also, but if that makes things even slower, the
>> we'll have to live with just one field dropdown.
>>
>> Any words of wisdom on how the make looking up data preactical speed
>> wise?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I optimize my data for faster searches Kelvin Beaton Microsoft Access Database Table Design 5 4th Apr 2007 11:41 PM
How can I optimize my data for faster searches Kelvin Beaton Microsoft Access Forms 5 4th Apr 2007 11:41 PM
How can I optimize my data for faster searches Kelvin Beaton Microsoft Access Queries 5 4th Apr 2007 11:41 PM
Optimize XP faster Anthony Windows XP Hardware 1 24th Oct 2003 11:08 AM
Optimize XP faster Anthony Windows XP General 2 21st Oct 2003 08:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:17 PM.