Today we released Craft CMS 2.6 and Craft Commerce 1.1. They bring some significant performance improvements and several refinements.
Most notably, we’ve added eager-loading support for elements, which has the potential to drastically reduce the number of SQL queries required to render pages with nested element queries.
We’ve made the following things eager-loadable:
- Relations via Entries, Assets, Users, Tags, Categories, and Commerce Products fields
- Matrix blocks
- Commerce product variants
- Image transform indexes
Third party element types can implement their own eager-loading support via the new getEagerLoadingMap() method, and third party field types can also add eager-loading support by implementing the new IEagerLoadingFieldType interface.
Craft CMS has also gained a new charting library. We’re using it to draw a big Revenue chart at the top of Commerce’s Orders page, as well as a new “Revenue” Dashboard widget. Craft Pro sites can also start keeping track of new user signups with the new “New Users” widget.
You can find a full list of what’s changed in the changelogs:
We hope you like them!