Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: How to modify/delete records in a flat-file database?

by pelagic (Priest)
on Apr 28, 2004 at 12:40 UTC ( [id://348800]=note: print w/replies, xml ) Need Help??


in reply to Re: How to modify/delete records in a flat-file database?
in thread How to modify/delete records in a flat-file database?

> How might I ensure that my original data remains uncorrupted even with multiple users?
Unless there are really multiple updates at a time ...

pelagic
  • Comment on Re: Re: How to modify/delete records in a flat-file database?

Replies are listed 'Best First'.
Re: Re: Re: How to modify/delete records in a flat-file database?
by TwistedGreen (Sexton) on Apr 28, 2004 at 12:45 UTC
    Oops, I missed that. It certainly brings more complexity to the problem... Database would definitely be the way to go then, I'd think. Even though I lock the files when they are read and written in my example above, two concurrent users could overwrite each other's changes.
      Thank you for sharing your code example with me. Thats a really nice way to read in data; much cleaner than the way that I would have thought. Regarding what was said about the multiple updates, I'm not sure how much concurant useage would occur with this script. I guess it's best to play it safe, however. Thank you very much for your input. Joe

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://348800]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-25 12:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found