I couldn`t find the number on limit for the Integer in Mongomapper.
May it convert a ‘big integer’ to LongInt in MongoDB automatically?
I couldn`t find the number on limit for the Integer in Mongomapper. May it
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The bson library handles this for you / mongomapper. If the thing you are trying to serialise is a bignum/fixnum it checks whether it will fit into a 4 byte or 8 byte integer and encodes it correspondingly. It actually checks the value, since a Fixnum limits don’t match the 4 byte /byte boundaries that mongo has.
The corresponding bit of the driver is here