Yeah I've picked this route - it is a bit of a pain though that map/reduce can't make use of the data and need process app/client side. Just lucky in this particular app it is really a moot point and the diff in speed is for intents zero.
Nick 2009/12/13 Brian Candler <[email protected]> > On Sat, Dec 12, 2009 at 01:18:41PM +0000, Leo Simons wrote: > > Looks like you're representing money; just work with cents (stored as > > ints) and you will *probably* be fine, especially if you stay clear of > > divisions. I wouldn't try and implement my own finance package that way, > > though :) > > > > Alternatively, implement your own decimal type in javascript, or use a > > relational database :) > > Or store strings (and deal with them with your client's BigDecimal or > equivalent) >
