Hi below in a given scenario
some_model_id = [1, 2, 3, 4]
some_model_id.each do |some_id|
SomeOtherModel.create(some_column: some_id)
end
Here insert query will run n times depending on some_model_id size
Is there a way where I can do it in single query on some other better approach then this.