Hello,
I am designing a grocery store application, I am not new to programming but I am new to database development. So, I need to ask some basic database design questions.
I have a product table with approx. 50,000 records. When I do a lookup (i.e Scan product) I take the upc code and query the database with a select statement like:
select field1, field2, field3, field4 where upc_code = '12345657890'
This lookup takes a long time, approximate a half to one second to complete. When I see other grocery systems, the lookup seems to be almost instantaneous. So, my question is how do I speed this up? Do other systems copy the db and query them locally? Stored procedures? What do I need to design differently.
I am using Visual Studio.Net with MySql 4.1 server and the MySqlConnector 1.06 for .Net
Any insight to this issue would be greatly appreciated.
Thank you.
Chris Taylor
I am designing a grocery store application, I am not new to programming but I am new to database development. So, I need to ask some basic database design questions.
I have a product table with approx. 50,000 records. When I do a lookup (i.e Scan product) I take the upc code and query the database with a select statement like:
select field1, field2, field3, field4 where upc_code = '12345657890'
This lookup takes a long time, approximate a half to one second to complete. When I see other grocery systems, the lookup seems to be almost instantaneous. So, my question is how do I speed this up? Do other systems copy the db and query them locally? Stored procedures? What do I need to design differently.
I am using Visual Studio.Net with MySql 4.1 server and the MySqlConnector 1.06 for .Net
Any insight to this issue would be greatly appreciated.
Thank you.
Chris Taylor