BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sorting and writing to file

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal
View previous topic :: View next topic  
Author Message
Swaminathan B
Guest





PostPosted: Wed Nov 29, 2006 6:34 pm    Post subject: Sorting and writing to file Reply with quote



hi i have a table from where the data are stored on batch number. for
every record in the batch there is a unique id assigned and the id is
assigned sequentially but will not be in batch order. since which ever
batch is processed first gets the id. i have to write few data to a
file sorted on this id. so i'm using a tadodataset to add these values
and then i'm sorting the records and writing to the file. the file can
be as large as 300 MB. i use block write to write exactly the 620 bytes
per line as per the file layout. for approximately 2,00,000 records the
time taken to add to the dataset is around 2 hours and then to write to
file it takes 4 hours. the problem i'm facing is after more than 80 MB
size is reached the writing to file is really slow. is there a quick
way to write to a file apart from block write. another problem is i
cannot sort the table. only i can pick up based on batch order and sort
in the memory.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.