basedosdados / backend

Backend da BD
https://backend.basedosdados.org/graphql
GNU General Public License v3.0
8 stars 1 forks source link

feat: add a new parameter to get_table_one_big_table_query #629

Closed jhonylucas74 closed 2 months ago

jhonylucas74 commented 2 months ago

Purpose

Improve the SQL queries generated in the backend.

Description

This task simplifies the generated query to use a single, consolidated SQL table. By default, the generated SQL includes translations from the table, but it is now possible to pass a parameter that will always simplify the SQL.

Checklist

Testing and Evidence

The GraphQL query to be used: Pass includeTableTranslation as false to simplify the generated SQL query.

image

This PDF represents the two versions of the query generated from the same table. Query_diff.pdf

Next Steps

Implement this in the frontend.