Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
AFX_ODBC_CALL(::SQLExecute(m hstmt) takes too long??? Sometimes system hangs. I want to read the image and save the blob data in CLongBinary variable and then i want to save it in the blob field of the mysql database. While executing the open statement of the CRecordset, it takes almost 60% usage of CPU and sometimes it hangs the system. What is the problem behind this??
Posted

1 solution

Difficult to say with that limited an information.
Have you tried running the query twice in succession and seeing if the timing is the same? It may be that the first call needs to load MySQL, which can take a while, or the database is huge and your query causes a major delay. You need to look at identifying where your bottle neck is before you can start to cure it.
 
Share this answer
 
Comments
Gokulnath007 27-Jul-11 3:34am    
http://www.codeproject.com/Questions/225770/How-to-avoid-network-traffic-in-VCplusplus

Look at the code I am using for it..
OriginalGriff 27-Jul-11 4:23am    
Not a lot of help: your code doesn't actually show what you are doing with the database...
Gokulnath007 27-Jul-11 3:39am    
Database contains upto 13,000 records

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