Revision a2d5028...

Go back to digest for 26th May 2013

Optimization in Other

Aaron J. Seigo committed changes in [bodega-server/store-creation] /:

cache the toplevel channel for each channel.

this simplifies checking if a channel belongs to a given store and the
creation and maintenance of sub-channels by allowing stores to only define
which top level channels they include. Then all subchannels from there on
down will reflect the topLevel and can be checked for store inclusion.

this implies that a top-level channel is an all-or-nothing thing: a store
that includes a given top level item includes ALL of its subchannels too.
however, i could not think of a rational use case where this would be necessary
or even desired.

(in fact: i ran into the problem of subchannels not associated with a store
because only parent channels had been while writing unit tests ...)

File Changes

Modified 5 files
  •   sql/core.plsql
  •   sql/purchasing.plsql
  •   sql/updates/21052013_deviceToStore.sql
  •   server/lib/db/channels.js
  •   server/lib/db/search.js
5 files changed in total