-
Type: Epic
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Attributes
-
None
-
Done
-
BigDecimal/Decimal128 interoperability
-
2
-
2
-
2
-
100
-
-
Fully Compatible
Both Ruby and MongoDB offer high precision decimal types: BigDecimal and Decimal128, respectively. Currently BigDecimal is serialized as a string rather than Decimal128, because the types are not 100% identical. This epic encompasses figuring out how to better integrate BigDecimal and Decimal128, and implementing said integration.
To be decided:
- Should there be separate types exposed by Mongoid for BigDecimal-serialized-as-string and BigDecimal-serialized-as-Decimal128?
- Should there be a global config setting to specify that BigDecimals should be serialized as Decimal128s or strings?
- Should some of the support be provided by the driver rather than entirely by Mongoid?
- is related to
-
RUBY-2186 Decimal128/BigDecimal interoperability in bson-ruby
- Closed
- related to
-
MONGOID-4237 Support for Decimal128 type
- Closed