Currently, the preview blurb displayed for each BlogPost on the BlogIndexPage is re-computed every time the page is loaded (since it is an @property attribute on the model). It would be better to memoize this computation and only store it when the BlogPost changes. The easiest way to do this is to add a preview field to BlogPost and use a custom save method to compute and save the preview only when necessary.
Currently, the preview blurb displayed for each BlogPost on the BlogIndexPage is re-computed every time the page is loaded (since it is an
@property
attribute on the model). It would be better to memoize this computation and only store it when the BlogPost changes. The easiest way to do this is to add apreview
field to BlogPost and use a customsave
method to compute and save the preview only when necessary.