I did read the tutorial you mentioned in the hopes that it would mention things like the tie/open prebuffering issues associated with dbm files. I would have been very happy to upvote you and recommend your node if that critical bit of information had been present. As written, however, it encapsulated the fatal flaw with applying flock() knowledge to locking dbm-style databases.

So I was upset that you perpetuated a bad-meme. I recommend BDB because if I use it then I don't have to remember how to do this safely (as long as NFS isn't involved anyway) and can delegate the task to the database/database wrapper.

That was it. I also picked on you because sulfericacid responded to your post and it looked like s/he might actually use that knowledge which would be a bad idea. Oh and sulfericacid - that tutorial is perfectly valid and good if you're dealing with normal files and you use things like open/close/readline/etc to work with it. The issues I'm raising and that you're falling over are (to my knowledge) restricted to dbm-style databases.


In reply to Re: (jeffa) 4Re: flocking databases by diotalevi
in thread flocking databases by sulfericacid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.