> You clearly haven't come across file indexing before! Using seek() to locate a

> record is incomparably faster than reading through it until you find the data
> you need.
> 
> Using the file offset as a record ID is a good idea because

> - It is bound to be unique
> - it is easy to verify that the data hasn't been corrupted

> The separate index.noun file is there to make it quick to find all records in
> data.noun that apply to a given word.

> Editing the database is a non-trivial task. You've found the documentation
> already, so take a look at that and write something that allows you to move 
> data
> around while keeping the record IDs valid.


Thank you that helps me understand a lot, I have stare at the documentation 
quite long but I still can't find the way of editing the data without affecting 
the byte offset. I would need to customize the module WordNet::QueryData 
according the the new things that I added too.

Thank you,


Send instant messages to your online friends http://uk.messenger.yahoo.com

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to