LINQ is the query language used by Devo to query data tables, but users are not required to write or understand LINQ queries. The Data Search area of the application is a graphical query builder allowing users to build queries in a more visual and intuitive way than by writing query scripts. However, Devo does make available a couple of options for users who know LINQ and want to write their own queries.
LINQ syntax is very flexible as it allows to make a query expression very close to the data discovery process by:
- selecting the source data table (using
- filtering data (using
- creating new columns (using
- grouping the data by a time value (using
- applying aggregation operations over the grouped data (using
Why using two different grouping periods (server period and browser period)?
It 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 browser period, so the information is sent from the server in smaller chunks. This allows you to do other aggregation 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.
Go to Performing operations using LINQ to check the list of operations you can perform and their corresponding LINQ expressions.
Building LINQ queries in Devo
You can write your own LINQ queries to perform a custom search in Devo. Users with the necessary permissions have access to the Free text query option in Data Search → Finder. For more information, see Running a search.
Besides, all users can access the Query Editor tool available on the toolbar when viewing the contents of a selected data table. For more information, see Toggle query editor.
To access the query editor:
- First, go to Data Search → Finder and open a data table. For example, we open the demo.ecommerce.data table. The data table opens.
Select the Toggle Query Editor button in the toolbar. The Query Editor window opens.
- Enter your query. In this example, we have manually written a query that will group the cookie and timeTaken columns every 15 seconds. Moreover, a column is added to count the number of rows in each 15 seconds group.
- Click Run to retrieve the results of the query.
Have we answered your question?
If not, please contact our technical support team via email by clicking the button below.CONTACT US