Z
Z
zbender2014-06-25 09:44:15
MongoDB
zbender, 2014-06-25 09:44:15

How to replace NumberLong with Int in MongoDB?

Updated mongo. Due to a change in the default setting in the new version (mongo.native_long=1), numbers are stored in NumberLong. After fixing the settings, the fields are again stored in int, but there are many entries in NumberLong. What is the best way to convert all fields in the NumberLong format to Int in all records of all collections?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question