couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Newson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COUCHDB-796) Bignum support
Date Sat, 12 Jun 2010 18:24:14 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12878298#action_12878298
] 

Robert Newson commented on COUCHDB-796:
---------------------------------------

Sorry, I pasted a terse summary from #couchdb and was then too busy to flesh this out.

I'm actually not sure I like the idea of tweaking mochijson2.erl, though it was suggested
(by you iirc ;). Also the notion that numbers magically become strings at some point feels
wrong, but so also does the notion that a sum() overflows or goes wrong when you hit that
limit too.

Rather, I think a guarantee that some bignum.js library is always available and some prominent
docs about it. Ideally a BigDecimal and BigInteger class like Java has (yes, kill me).


> Bignum support
> --------------
>
>                 Key: COUCHDB-796
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-796
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Database Core
>    Affects Versions: 0.11
>            Reporter: Robert Newson
>             Fix For: 1.0
>
>
> CouchDB uses spidermonkey which can only handle 32 bit integer values before overflowing.
This might surprise users of map/reduce on large datasets.
> Instead, alter mochijson2.erl to handle bignums and encode numeric values as strings.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message