cgrand / enlivez

8 stars 0 forks source link

Day #3 #9

Closed cgrand closed 5 years ago

cgrand commented 5 years ago

Spent too much time on #6 to figure out that the simplest solution was:

  1. to normalize the query to DNF
  2. compute the composite key of each branch
  3. take the union of the keys
  4. it's ok to include a column (var) in the key even if it was not part of the initial :find.

Focused on this subproblem, I almost forgot why it is important: a template query may retrieve data only useful for child templates (often queryless) and we don’t want to trigger a redraw of a component when only data for a su component has changed.