Click here to Skip to main content
11,932,681 members (64,194 online)
Rate this:
Please Sign up or sign in to vote.
See more: VC8.0 C++
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 26-Jul-11 22:06pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
Gokulnath007 27-Jul-11 3:34am

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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 27 Jul 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100