Fork me on GitHub
#pathom
<
2022-09-21
>
souenzzo18:09:11

as good as datomic (on-prem)

lilactown19:09:36

> Using the N+1 Query pattern in Fossil does not harm the application. But the N+1 Query pattern does have benefits. For one, the section of the code that creates the timeline query can be completely separate from the section that prepares each timeline entry for display. This provides a separation of responsibility that helps keep the code simple and easy to maintain. Secondly, the information needed for display, and the queries needed to extract that information, vary according to what type of objects to be shown. Check-ins need one set of queries. Tickets need another set of queries. Wiki pages need a different query. And so forth. By implementing these queries on-demand and in the part of the code dealing with the various entities, there is further separation of responsibility and simplification of the overall code base. > So, SQLite is able to do one or two large and complex queries, or it can do many smaller and simpler queries. Both are efficient. An application can use either or both techniques, depending on what works best for the situation at hand.

lilactown19:09:14

I'm posting this here because this is a common problem in GraphQL and I imagine in pathom too, which it sounds like if you can store all your data in sqlite, is not a problem at all 😄

wilkerlucio19:09:36

yup, really fascinating, although pathom has features to deal with batching, not using it is simpler, so this is a great target to pathom processing without much optimization fuzz :)

💯 1