Best use : filtering or adapted request ?
Posted: Sat Mar 15, 2025 6:24 pm
Hi,
I would like to know the best option for filtering a browse list: using an SQL query or the filtering mechanism provided by the object run.
have two tables: customers and tasks.
Each task is associated with a customer, and for each customer, I display the corresponding list of tasks.
What is the best approach to accomplish this?
Should I use an SQL query with a WHERE clause on the customer_id to filter the tasks related to the open record?
Or should I use a filtered request on the tasks list?
I am particularly concerned about potential performance issues. I have attached a database presenting both options. Thank you for advising me on the best option.
Yves
I would like to know the best option for filtering a browse list: using an SQL query or the filtering mechanism provided by the object run.
have two tables: customers and tasks.
Each task is associated with a customer, and for each customer, I display the corresponding list of tasks.
What is the best approach to accomplish this?
Should I use an SQL query with a WHERE clause on the customer_id to filter the tasks related to the open record?
Or should I use a filtered request on the tasks list?
I am particularly concerned about potential performance issues. I have attached a database presenting both options. Thank you for advising me on the best option.
Yves