Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC8.0
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
good
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.
  Permalink  
Comments
Gokulnath007 at 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 at 27-Jul-11 4:23am
   
Not a lot of help: your code doesn't actually show what you are doing with the database...
Gokulnath007 at 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
0 OriginalGriff 350
1 Jochen Arndt 150
2 Richard MacCutchan 135
3 PIEBALDconsult 110
4 Sergey Alexandrovich Kryukov 104
0 OriginalGriff 6,055
1 DamithSL 4,621
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,500
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 27 Jul 2011
Copyright © CodeProject, 1999-2014
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