You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would basically 2x performance on the most common find queries. Instead of finding and then counting, run both in a Promise.all.
Also, investigate "returning" for update and patch methods. I see that the create method supports this. I wonder if the builder.update supports this. If so, the secondary query is no longer needed and has considerable performance gain. See the MongoDB adapter for an example.
The text was updated successfully, but these errors were encountered:
In the
_find
method,countBuilder
andbuilder
should be run in parallel when possible.feathers/packages/knex/src/adapter.ts
Line 188 in 8ac69f4
This would basically 2x performance on the most common find queries. Instead of finding and then counting, run both in a
Promise.all
.Also, investigate "returning" for update and patch methods. I see that the
create
method supports this. I wonder if thebuilder.update
supports this. If so, the secondary query is no longer needed and has considerable performance gain. See the MongoDB adapter for an example.The text was updated successfully, but these errors were encountered: