[REBOL] Handling very large databases
From: chris::starforge::co::uk at: 19-May-2001 10:25
I'm probably missing something obvious here, but anyway: say I have a
file containing a meg or so worth of
[string! date! integer! string! ...] [string! date! integer! string! ...] ...
and I need to display blocks 120 to 135. Loading the whole file into memory
just for a few blocks in the middle of the file is obviously a waste of
time and resources. As this is a cgi script, and my hoster gets a but
steamed if scripts lock up the system for too long, I would like to optimise
this case so that I can just load the blocks I need, say something like
projectdata: loadrecords/start/end project-datafile 120 135
Is there a way I can do this?
New sig in the works
Explorer 2260, Designer and Coder
Things I'd Do If I Ever Became An Evil Overlord
9. I will not include a self-destruct mechanism unless absolutely
necessary. If it is necessary, it will not be a large red button
labeled ``Danger: Do Not Push''. The big red button marked
``Do Not Push'' will instead trigger a spray of bullets on anyone
stupid enough to disregard it.
Similarly, the ON/OFF switch will not clearly be labeled as such.