# March 20, 2025 - Using withTotalElements parameter in queries

**URL:** https://community.cumulocity.com/t/march-20-2025-using-withtotalelements-parameter-in-queries/12057
**Category:** Application Enablement
**Tags:** web-sdk, Feature, app-enablement
**Created:** [March 21, 2025, 7:03am UTC](https://community.cumulocity.com/t/march-20-2025-using-withtotalelements-parameter-in-queries/12057 "2025-03-21T07:03:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)
#### Post date: [March 21, 2025, 7:03am UTC](https://community.cumulocity.com/t/march-20-2025-using-withtotalelements-parameter-in-queries/12057/1 "2025-03-21T07:03:59Z")

</div>

## Context

* * *

**Change Type:** Feature  
**Product area:** Application enablement & solutions  
**Component:** Web SDK  
**Deployed at:** [eu.latest.cumulocity.com](http://eu.latest.cumulocity.com), [apj.cumulocity.com](http://apj.cumulocity.com), [jp.cumulocity.com](http://jp.cumulocity.com), [cumulocity.com](http://cumulocity.com), [us.cumulocity.com](http://us.cumulocity.com)

> **Technical details**
>
> **Build artifact:** ui-c8y (1021.48.0)  
> **Internal ID:** MTM-44459

## Description

* * *

Many queries in Cumulocity now use the `withTotalElements` parameter. This way, the number of queries required to retrieve the total number of items can be significantly reduced. This change considerably improves the performance, especially when working with large datasets such as the device list.
