As the name suggests, a direct query model pulls the data directly from the data source at the time of query. Here, no data is cached or imported to the Wyn Server, which means you are accessing the latest data from the data source itself.
In a direct query model, the data tables in the databases and the relationships between the data tables are represented in a flat diagram, wherein data tables are represented by a circle and relationships are represented by arrows. The direction of the arrows represents the relationship cardinality between the source and target entities. Have a look at the below diagram.
Typically, a direct query model is based on three concepts - entities, attributes, and relationships, where entities represent the data tables in the database, attributes represent the data columns, and relationships represent the link between the data tables.
Following are a few advantages of the Direct Query Model:
The below image illustrates the Direct Query Model Designer.
The Entities panel on the left of the designer lists the data tables in the databases. You can expand the entity to see its associated attributes. The Diagram area in the center shows the entity-relationship diagram for the model. The Properties panel on the right displays the properties for the selected entity, attribute, and relationship in the diagram. You can also select the entities and attributes from the Entities panel on the left.
The menu on the top of the designer provides options to add entities or local entities, configure relationships between entities, mark the path start or end, and so on.
The Direct Query Data Model for the dashboards supports the following data sources: