Group data using LINQ
These are the necessary clauses you need to add to your LINQ query in order to group data:
Adding two different grouping periods might look like an unnecessary complexity, but it brings many advantages, such as the optimization of the query response. The server period is smaller than the client period, so the information is sent from the server in smaller chunks. This allows you to apply other grouping periods from the browser without having to query the server again. An
every 0 is also allowed in the case you don’t want any grouping period.
For example, the following query groups data by IP address and status code every 3 hours (client period). The server period has been set to 30 minutes to optimize performance.
Learn more about client and server periods here.