netwire
(netwire)
3
Hi @Dmitry_Rybakov, sorry for the very delayed reply. We were hoping version updates would’ve helped but it hasn’t.
We just tried Mongoid v8.1.4 and it’s still very slow.
Here’s the setup:
mongoid community 7 on mac os
ruby 3.2.2
rails 6.1.7.6
mongoid 8.1.4
Here’s the rspec code
time_started = Time.now
create_list(:orders, 500)
puts "Finished create_list in #{Time.now - time_started} seconds."
With Mongoid 7.5.4, output: Finished create_list in 0.521735 seconds.
With Mongoid 8.1.4 (everything else the same), output: Finished create_list in 57.659705 seconds.