R
Ram Prasad
Hi,
I am a quiet a newbie to C programming. ( not new to programming
itself though )
I am writing an email blacklist application that will lookup huge DB
files like
----------
somedomain.com=emailid1
someotherdomain.com=emailid2
somedomain.com=senderdomain1
....
....
---------------------
there would be anywhere between 10k-200k such records
What is the best way of looking up such a list. I want to have the
queries return very fast , the memory footprint would ideally be low
but that is not a limiting factor
Should I use something like a Berkeley DB and read from a DB file or
should I read the entire stuff into memory.
Thanks
Ram
PS:
Note to Spammers: Go ahead , send me spam
(e-mail address removed)
http://ecm.netcore.co.in/spamtrap.html
I am a quiet a newbie to C programming. ( not new to programming
itself though )
I am writing an email blacklist application that will lookup huge DB
files like
----------
somedomain.com=emailid1
someotherdomain.com=emailid2
somedomain.com=senderdomain1
....
....
---------------------
there would be anywhere between 10k-200k such records
What is the best way of looking up such a list. I want to have the
queries return very fast , the memory footprint would ideally be low
but that is not a limiting factor
Should I use something like a Berkeley DB and read from a DB file or
should I read the entire stuff into memory.
Thanks
Ram
PS:
Note to Spammers: Go ahead , send me spam
(e-mail address removed)
http://ecm.netcore.co.in/spamtrap.html