Skip to content

Commit

Permalink
Pre-load parquet extension
Browse files Browse the repository at this point in the history
  • Loading branch information
dfsnow committed Nov 1, 2024
1 parent 7a0083c commit b87c0f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions site/assets/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ async function instantiateDB() {
await db.instantiate(bundle.mainModule, bundle.pthreadWorker);
URL.revokeObjectURL(workerUrl);


return db;
}

Expand Down Expand Up @@ -197,6 +198,7 @@ const colorScale = (duration) => {
]);

const db = await DuckDB.connect();
db.query("LOAD parquet");
addColorScale(map);
spinner.hide();

Expand Down

0 comments on commit b87c0f8

Please sign in to comment.