Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

caching

Status
Not open for further replies.

ankursaxena

Programmer
Sep 7, 2001
133
US
Hi! i have a small problem, i want to cache data, what exactly is the best way to do so for say 10,000 records of phone numbers and some associated data. each record will contain aprox 320 bytes and hence 3.2mb of data cache for my server program.
why i need to cache is, i have a database in the background, i dont want to send and retrieve data from there often, so i want an efficient way of caching my requests. but the data in the database can be changed and hence, when i make a request, rather than requesting all the fields i will only request a dirtybit field for each row, to c if that has been set, if so then i make the query, else just look in my cache for the data. how could i go about doing this.

input would be greatly appreciated.
thanx a lot.
Ankur
 
Put all your records in a vector, they are easy to use,
(its in the stl library) I use them all the time.
Easy to change and use ,look for info on the net :)


Greetz,

The Muppeteer.

themuppeteer@hotmail.com

Don't eat yellow snow...
 
Status
Not open for further replies.

Similar threads

Replies
2
Views
127

Part and Inventory Search

Sponsor

Back
Top