If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > How To enchance the Performance SQL stmt

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-21-03, 10:07
deepakram deepakram is offline
Registered User
 
Join Date: Oct 2003
Location: Detroit
Posts: 11
How To enchance the Performance SQL stmt

Hi,
I would like to get good performance with my C++ program which uses ODBC to connect to a Excel Database having 1 table but as many as 10K rows and about 4-5 columns.
any idea how ? Do i need to Tweak the ODBC .INI file in the Registry ?
I am using Win 2k , office 2000 Setup.

My database query is quiet simple: There is only 1 table, 4 columns, 10K rows. The first Col stores the ID, the 2nd...3 4th some string values related to ID. There are 10K such rows.

The SQL stmt is as follows:

SELECT * FROM * WHERE ID = 1 OR ID = 2....OR ID = 1000 ORDER BY ID.
There are no JOINS atall. The query is simple but bulky. Each query has about 100 ID values that I need to look for in any of the rows of the table, and return the value in the other corresponding columns of the same row. If the ID is not present in the table, then return NONE.

I am able to acheive this, but my performance is not so good. To search for 500 ID values, it takes about 1 sec.
Any ideas?

Thanks,
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On