Database / DuckDB Interview questions
What is DuckDB-Wasm?
DuckDB-Wasm is a WebAssembly build of DuckDB that runs entirely inside a web browser, letting SQL queries execute directly on data loaded into a browser tab, in JavaScript memory or files a user has selected, without any server-side database or backend query processing at all.
import * as duckdb from '@duckdb/duckdb-wasm'; const db = await createDuckDB(); const conn = await db.connect(); const result = await conn.query("SELECT * FROM 'data.parquet'");
This enables genuinely client-side, in-browser analytics applications: a dashboard or data exploration tool can load a user's local file and run real SQL queries against it purely within the browser sandbox, with no data ever leaving the user's machine, which is meaningfully different from a typical web analytics tool that has to send data to a server to be queried.
More Related questions...