• Post Reply Bookmark Topic Watch Topic
  • New Topic

I need advice in searching very larg key/value records from file

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post
I have an application to write , in my application i need to search in a file that contain some sorted key/values (all item are sorted base on their key wich itself is an String) , when user enter its data i should search the file and locate the desiered record , what is best practive to implement this kind of search ?

my files are plain text and key/values are seperate via , .

should i put them in seperate files ?

is it wise to store a hash of Keys and then hash user input to search faster ?

all your suggestions are welcome


Thanks
 
Did Steve tell you that? Fuh - Steve. Just look at this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!