Interface wise, i would not be terribly worried about this. I mean, the DBM modules have been tieing hashes to "databases" all along. I can see feeling un-easy tho.
My major concern would be speed as compared to SQL. If each UPDATE, SELECT, INSERT or DELETE is a single statement handle, there could be some major amounts of waste. If, there is a single statement handle, it maybe a bit better. I see no fundumental problem with <code lang="perl">Tie</code>'ing, but i would suggest testing some of the following under
Benchmark
- hash slices , do they work ? (if you tie,you make the next deveoper not need to understand it is a database)
- speed of insert versus SQL insert
- use of key with mis-matched datatype (does it die ? can you supply a handler ?)
these are just a few, but , i have never used the module, and all of these maybe coverd by a quick look through the perldoc, or some quick code trolling. I find i ask better (read as simpler) questions when i have yet to look at the code.
i had a memory leak once, and it ruined my favorite shirt.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.