Skip to content

Understanding the performance of a query #61

Answered by acupofjose
rmkerr asked this question in Q&A
Discussion options

You must be logged in to vote

Filtering happens database side - I’ve written the LINQ parser so that it translates the query expressions into the GET/POST/PATCH requests necessary to interact with postgrest-csharp.

Basically, everything that happens prior to the async request is server side:

var response = await postgrestClient
   .Table<T>()
   .Where(...) // Server Side
   .Where(...) // Server Side
   .Get();

Everything that happens with response.Models<T>() is client side.

var models = response.Models<T>();

var filtered = models.Where(....) // Client Side

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rmkerr
Comment options

@rhuanbarros
Comment options

Answer selected by rmkerr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants