diff --git a/guides/howtos/Dynamic queries.md b/guides/howtos/Dynamic queries.md index cb15e13d6c..392cee7662 100644 --- a/guides/howtos/Dynamic queries.md +++ b/guides/howtos/Dynamic queries.md @@ -106,7 +106,7 @@ By using dynamic fragments, we can decouple the processing of parameters from th ## Building dynamic queries -Let's go back to the original problem. We want to build a search functionality where the user can configure how to traverse all posts in many different ways. For example, the user may choose how to order the data, filter by author and category, as well as select posts published after a certain daate. +Let's go back to the original problem. We want to build a search functionality where the user can configure how to traverse all posts in many different ways. For example, the user may choose how to order the data, filter by author and category, as well as select posts published after a certain date. To tackle this in Ecto, we can break our problem into a bunch of small functions, that build either data structures or dynamic fragments, and then we interpolate it into the query: diff --git a/guides/howtos/Multi tenancy with query prefixes.md b/guides/howtos/Multi tenancy with query prefixes.md index 09070388c8..12a2f9ab4b 100644 --- a/guides/howtos/Multi tenancy with query prefixes.md +++ b/guides/howtos/Multi tenancy with query prefixes.md @@ -266,8 +266,11 @@ end ## Summing up -Ecto provides many conveniences for working with querying prefixes. Those conveniences allow developers to configure prefix with different level of granularity: +Ecto provides many conveniences for working with querying prefixes. Those conveniences allow developers to configure prefixes with different precedence, starting with the highest one: - connection prefixes < schema prefix < query/struct prefixes < from/join prefixes + 1. from/join prefixes + 2. query/struct prefixes + 3. schema prefixes + 4. connection prefixes This way developers can tackle different scenarios, from production requirements to multi-tenant applications.