Click here to Skip to main content
15,887,376 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am currently getting the ID by a select statement through the database table.

result = profiledt.Select("Individual_ID = '" & nwindividual.Individual_ID & "'")
        profilerowstring = profiledt.Rows.IndexOf(result(0))


The issue with this is as the database gets larger the response times are increasing. There has to be a faster way to get the ID of the matched individual. Any suggestions?

What I have tried:

I have only have tried the select statement. Just started noticing a big increase in time once we made it to 200,000+ individuals.
Posted
Updated 22-Dec-19 14:57pm

1 solution

Quote:
I have only have tried the select statement. Just started noticing a big increase in time once we made it to 200,000+ individuals.

This is typical of a problem with index definition.
Need table definition and indexes to further analyze.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900