New feature - Count limited collections
How often do you need pagination for your Betty web pages? This will often lead to slow page loads. To help you build pages that load a lot quicker, we've introduced the count_full_collection() expression function.
Currently, if you want to paginate over a certain collection, you have to fetch the collection twice. Once with the limit and offset and once without in order to show a total count. With the count_full_collection() function, you can create a collection variable with offset and limit as you previously did (e.g. "products"). Now, however, you can create a second variable that counts all records for the given model and filter without the limit and offset, with count_full_collection(var:products). This should drastically improve the load times of pages where you paginate over large collections of data.