parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

[Discussion] Select fields does not propagate to the Mongo Layer

Open shivangagarwal opened this issue 10 years ago • 2 comments

Hi,

Is there a specific reason as to why the select fields are not propagated to the Database Controller layer and further passed on to Mongo? Currently all the fields are fetched from Mongo and then sliced at the parse-server level, but we can just pass the select fields to the Mongo itself. By adding these changes, the queries are much much faster.

Let me know if i am missing something. If this is fine, i can provide with a PR.

shivangagarwal avatar Sep 06 '16 06:09 shivangagarwal

No specific reason. Go ahead! I believe you can also do the same for $dontSelect.

Just one note, we're trying to move forward with the PG adapter as well, so that change should be also propagated to the PG adapter.

flovilmart avatar Sep 06 '16 12:09 flovilmart

Closing has it's been merged to master and released to 2.2.22

flovilmart avatar Sep 25 '16 18:09 flovilmart