I’m using multiple inputs in a page and I’m getting the data from the .parquet file (i.e. weekly_overview), with blocks, crops and varieties. This is how I’m doing it now.
const indicators = await sql([ SELECT DISTINCT indicator FROM "weekly_overview_23" ORDER BY indicator;
]);
```js
const variedades = await sql([`
SELECT DISTINCT block, crop, variety
FROM weekly_overview_23
ORDER BY block, crop, variety`]);
const bloques = await sql([`
SELECT DISTINCT block
FROM weekly_overview_23
ORDER BY block`]);
const cultivos = await sql([`
SELECT DISTINCT crop
FROM weekly_overview_23
ORDER BY crop`]);
The terminal is showing that I’m reading the parquet file multiple times. Wondering if there is a better way.
Thanks,