in reply to Perl or Mysql to store multiple choices?
It sounds like you're asking if you should compress multiple selections into a single row or not -- with the database select being a given.
Based on that, compressing and decompressing the data (with a join and split) would be my suggestion; that's got to be faster than doing an INSERT/UPDATE and then a SELECT for multiple fields. I expect the code would look cleaner too.
Although I've read benchmarks, I've never used Benchmark, but it would definitely tell you what's faster, and then you'd have the ability to balance that speed with the associated complexity of the code.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl or Mysql to store multiple choices?
by punch_card_don (Curate) on Mar 29, 2007 at 21:49 UTC | |
by roboticus (Chancellor) on Mar 30, 2007 at 02:51 UTC |