silverstripe-framework/docs/en/04_Changelogs
Sam Minnée 5b7a84141b NEW: Add Hierarchy::prepopulate_numchildren_cache() (#8380)
* NEW: Add Hierarchy::prepopulate_numchildren_cache()
API: Hierarchy::stageChildren() customisations must be applied to the base class and not include record-specific behaviour.

Adds the ability to prepopulate the cache for Hierarchy::numChildren()
in a batch.

Note that this optimisation means that stageChildren() is not called on
each record in order to calculate numChildren(). This means that the
structure of the stageChildren() query must be the same for all records
and the behaviour cannot be customised only for a subclass of the base
data class. For example, apply your customisations to SiteTree and not
a subclass.

This is an useful part of optimising the query count on tree generation.
See https://github.com/silverstripe/silverstripe-framework/issues/8379

* NEW: Add Hierarchy::prepopulateTreeDataCache()

This provides a more extensible way of preopulating caches for optimised
tree generation.

Fixes https://github.com/silverstripe/silverstripe-framework/issues/8391
2018-09-25 12:25:23 +12:00
..
_images Restructure of the docs markdown source files into more logical taxonomy 2014-12-17 15:48:35 +13:00
alpha Removed old changelogs (fixes #8035) 2018-05-30 16:07:21 +12:00
beta Added 4.2.0-beta1 changelog 2018-06-15 15:47:03 +12:00
rc Removed old changelogs (fixes #8035) 2018-05-30 16:07:21 +12:00
4.0.0.md Removed duplicate upgrade instructions 2018-06-27 15:17:06 +12:00
4.0.1.md Added 4.0.1 changelog 2017-12-07 13:46:52 +13:00
4.0.2.md Remove security releases from 4.0.1 2018-01-25 14:40:07 +13:00
4.0.3.md Added 4.0.3 changelog 2018-02-05 17:10:00 +13:00
4.0.4.md Updated 4.0.4 changelog 2018-05-24 13:51:21 +12:00
4.0.5.md DOCS Update docs to reflect true config merge priorities 2018-07-23 14:15:25 +01:00
4.1.0.md Removed duplicate upgrade instructions 2018-06-27 15:17:06 +12:00
4.1.1.md Added 4.1.1 changelog 2018-05-24 16:52:15 +12:00
4.1.2.md Added 4.1.2 changelog 2018-06-19 17:06:01 +12:00
4.1.3.md Merge branch '4.0' into 4.1 2018-07-13 16:42:00 +01:00
4.2.0.md Merge branch '4.2' into 4 2018-07-30 11:07:15 +01:00
4.2.1.md Added 4.2.1 changelog 2018-07-30 14:12:55 +00:00
4.3.0.md NEW: Add Hierarchy::prepopulate_numchildren_cache() (#8380) 2018-09-25 12:25:23 +12:00
index.md Update index.md 2015-06-18 19:40:04 +12:00