netwire
(netwire)
18
Hi @Jamis_Buck ,
We are migrating to mongodb 8 and are noticing slow insertions again. We installed v8 community edition on macOS and are seeing these results using your script:
insert performance
[7.5.4]: 3.405663 seconds
insert performance
[8.1.9]: 108.475614 seconds
insert performance
[9.0.5]: 102.547318 seconds
We are on this setup:
ruby 3.3.6
rails 6.1.7.10
factory_bot_rails (6.4.4)
However, if we added Mongoid.belongs_to_required_by_default = false to the top of the script
Mongoid.connect_to 'mongoid_test_db'
Mongoid.purge!
Mongoid.belongs_to_required_by_default = false
We get
insert performance
[7.5.4]: 3.405663 seconds
insert performance
[8.1.9]: 2.241386 seconds
insert performance
[9.0.5]: 2.317278 seconds
Any ideas?