Is there a difference in performance when using
Keyword query syntax:
from u in "users", where: [u.age > 18], where: [property_id: ^property_id]
and
Pipe-based syntax
"users"
|> where(age: ^age)
|> where(property_id: ^property_id)
Is there a difference in performance when using
Keyword query syntax:
from u in "users", where: [u.age > 18], where: [property_id: ^property_id]
and
Pipe-based syntax
"users"
|> where(age: ^age)
|> where(property_id: ^property_id)
Obviously there is no difference in anything, since both result in the absolutely same AST.
Ecto.Query.from/2
is a macro.