Click here to Skip to main content
15,919,245 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Threading... Pin
David Crow19-Jul-04 9:17
David Crow19-Jul-04 9:17 
GeneralRe: Threading... Pin
0v3rloader19-Jul-04 22:53
0v3rloader19-Jul-04 22:53 
GeneralDatabase Application Performance Pin
Sridhar Sanikommu19-Jul-04 7:01
Sridhar Sanikommu19-Jul-04 7:01 
GeneralRe: Database Application Performance Pin
G. Steudtel19-Jul-04 7:10
G. Steudtel19-Jul-04 7:10 
GeneralRe: Database Application Performance Pin
Ivan Cachicatari19-Jul-04 7:12
Ivan Cachicatari19-Jul-04 7:12 
GeneralRe: Database Application Performance Pin
Alexander Wiseman19-Jul-04 7:25
Alexander Wiseman19-Jul-04 7:25 
GeneralRe: Database Application Performance Pin
Sridhar Sanikommu19-Jul-04 7:35
Sridhar Sanikommu19-Jul-04 7:35 
GeneralRe: Database Application Performance Pin
Alexander Wiseman19-Jul-04 10:14
Alexander Wiseman19-Jul-04 10:14 
So, just to clarify exactly what you are trying to do: you are opening and reading a text file from which data you want to insert records into a database. Because you want to insert so many records, I would suggest using a SQL command to insert the data (INSERT INTO...) instead of CRecordset::AddNew() and CRecordsSet::Update(). The CRecordset functions for adding records tend to be slower than simply executing a SQL statement against the database. You can execute a SQL statement by using the function in CDatabase (I forget the exact name, but it is something like "Execute").

For fetching large numbers of records, I would also suggest that you move away from the default RFX (Recordset Field Exchange - where you predefine the columns returned from the query) implemented with CRecordset. Again, this tends to be slower than simple qeurying the database with SQL statement and not using RFX. For some more information on this topic, take a look at the ODBC section on CodeProject: http://www.codeproject.com/database/#ODBC[^].

If you need more specific information, or some example code, please let me know.

Sincerely,
Alexander Wiseman

Est melior esse quam videri
It is better to be than to seem
GeneralRe: Database Application Performance Pin
Sridhar Sanikommu19-Jul-04 11:28
Sridhar Sanikommu19-Jul-04 11:28 
GeneralRe: Database Application Performance Pin
Alexander Wiseman19-Jul-04 15:52
Alexander Wiseman19-Jul-04 15:52 
GeneralRe: Database Application Performance Pin
Anonymous19-Jul-04 16:36
Anonymous19-Jul-04 16:36 
GeneralRe: Database Application Performance Pin
Sridhar Sanikommu19-Jul-04 16:38
Sridhar Sanikommu19-Jul-04 16:38 
GeneralRe: Database Application Performance Pin
Steen Krogsgaard19-Jul-04 23:01
Steen Krogsgaard19-Jul-04 23:01 
GeneralFinding files recursively Pin
Ivan Cachicatari19-Jul-04 6:55
Ivan Cachicatari19-Jul-04 6:55 
GeneralRe: Finding files recursively Pin
Alexander Wiseman19-Jul-04 7:21
Alexander Wiseman19-Jul-04 7:21 
GeneralRe: Finding files recursively Pin
gamitech19-Jul-04 12:07
gamitech19-Jul-04 12:07 
Generalgetting userID Pin
maggi198119-Jul-04 6:41
sussmaggi198119-Jul-04 6:41 
GeneralRe: getting userID Pin
19-Jul-04 7:06
suss19-Jul-04 7:06 
Generalproblem with OnFileOpen Pin
toothpick19-Jul-04 6:31
toothpick19-Jul-04 6:31 
GeneralRe: problem with OnFileOpen Pin
PJ Arends19-Jul-04 7:22
professionalPJ Arends19-Jul-04 7:22 
GeneralRe: problem with OnFileOpen Pin
Antti Keskinen19-Jul-04 14:30
Antti Keskinen19-Jul-04 14:30 
GeneralRe: problem with OnFileOpen Pin
toothpick20-Jul-04 12:56
toothpick20-Jul-04 12:56 
GeneralFile Mapping Pin
Toni7819-Jul-04 6:24
Toni7819-Jul-04 6:24 
GeneralRe: File Mapping Pin
bikram singh19-Jul-04 11:02
bikram singh19-Jul-04 11:02 
GeneralRe: File Mapping Pin
Toni7821-Jul-04 8:47
Toni7821-Jul-04 8:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.