We use Cache component to avoid querying MongoDB multiple times for a small amount of time.
Even for a external cache it could be very onerous with large results processed multiple times on a same request. To minimize those effects a second level in memory cache as array could minimize this too.
Coverage increased (+0.06%) to 94.211% when pulling 42d2bd3f3299059561444f245900111b48d8bb35 on second-level-cache into 42aa1d86d76f0bc41844ee637c8a8f9fbc471725 on master.
Coverage increased (+0.06%) to 94.211% when pulling 42d2bd3f3299059561444f245900111b48d8bb35 on second-level-cache into 42aa1d86d76f0bc41844ee637c8a8f9fbc471725 on master.
We use Cache component to avoid querying MongoDB multiple times for a small amount of time.
Even for a external cache it could be very onerous with large results processed multiple times on a same request. To minimize those effects a second level in memory cache as array could minimize this too.