Skip to content

Symlink data loaders to save disk space #1841

Answered by mbostock
tel asked this question in Q&A
Discussion options

You must be logged in to vote

Is the issue that you can’t reference a parameter in the SQL front matter, and thus can’t compute the relative path from src/reports/[date]/report.md to src/data/results/[date]/[name].parquet?

Can you instead generate the data in src/reports/[date]/[name].parquet instead, so you don’t need to copy it? Then you can use ./inputs.parquet rather than needing a data loader.

Alternatively, you could use JavaScript to initialize DuckDB instead of using the SQL front matter, as you describe in #1846.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@tel
Comment options

@Fil
Comment options

Fil Nov 25, 2024
Collaborator

@tel
Comment options

@tel
Comment options

Comment options

You must be logged in to vote
2 replies
@tel
Comment options

@tel
Comment options

Answer selected by tel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants