-
Notifications
You must be signed in to change notification settings - Fork 19
04 using basic operators
The DBest tool provides a wide range of operators that allow users to create complex queries. To get started, focus on the foundational operators of relational algebra, such as:
- Projection
- Selection (Filter)
- Join
- Aggregation
The example showcases a query tree that combine basic operators:
-
Join: Combines
movieandmovie_casttables. -
Filter (Selection): Filters rows based on the
year. -
Projection: Projects only the
titleandcharacter_namecolumns.
The following screenshots demonstrate how to configure the query tree operators:
-
Join Operator:
The property window displays the available columns from the left (movie) and right (movie_cast) child nodes. The join predicate is defined as:
movie.movie_id = movie_cast.movie_id.
-
Filter Operator:
The property window for the filter operator defines an atomic expression that compares thecast_ordercolumn to a constant value.
-
Projection Operator:
The property window for the projection operator specifies two columns for retrieval:-
titlefrom themoviedata node. -
character_namefrom themovie_castdata node.

-
The example above demonstrated basic operators. However, many operators have variations that differ in semantics and efficiency. For instance, the join operation includes:
-
Join Types:
cross-join,inner-join,semi-join,anti-join, andouter-join. -
Join Algorithms:
nested-loop,merge-join, andhash-join.
Start with the classic operators to build a solid foundation. Once comfortable with the basics, experiment with these variations to better understand their use cases and performance implications.
- Start Small: Use small data sources initially to prevent inefficiencies that may cause the tool to hang.
- Experiment: Rearrange operators and observe how they affect the result set and query performance.
- Learn by Doing: Focus on understanding the purpose and behavior of each basic operator before experimenting with advanced operators.
- Data Sources
- Operators
- Creating a query tree
- Using basic operators
- Running queries
- Other query options
- Working with CSV
- Working with temporary tables
- Understanding schemas
- Understanding indexes
- Creating indexes
- Equi-joins and non-equi-joins
- Join types
- Join algorithms
- Using boolean expressions
- Comparing query costs
- Optimizarion techniques
- Query Examples