
2 collections of the same model, which is faster?
Hey all,
Lets say I have an action where I need 2 collections of the same model. The first collection is the complete model, the second collections is a selection of the complete model. Which of the 2 setups is faster?
- One collection of the complete model and an other collection with a selection of the complete model.
- One collection of the complete model and a filtered collection of the first collection .
Normally, a filtered collection is faster. But I am wondering if it makes any difference if the first collection is a collection of the complete model.
Thanks!
Hey all,
Lets say I have an action where I need 2 collections of the same model. The first collection is the complete model, the second collections is a selection of the complete model. Which of the 2 setups is faster?
- One collection of the complete model and an other collection with a selection of the complete model.
- One collection of the complete model and a filtered collection of the first collection .
Normally, a filtered collection is faster. But I am wondering if it makes any difference if the first collection is a collection of the complete model.
Thanks!
Login to reply