Stream archive: Recording video for transaction bulk insert with sqlx rust (2023-10-02 afternoon)

Subscribers:
8,090
Published on ● Video Link: https://www.youtube.com/watch?v=qKbn2FdXEmU



Duration: 1:46:23
44 views
1


We finish the article and record a lesson for bulk importing using transactions in sqlx in Rust.

Links

SQLx FAQ: [https://github.com/launchbadge/sqlx/blob/main/FAQ.md#how-can-i-bind-an-array-to-a-values-clause-how-can-i-do-bulk-inserts](https://github.com/launchbadge/sqlx/blob/main/FAQ.md#how-can-i-bind-an-array-to-a-values-clause-how-can-i-do-bulk-inserts)

Postgres copy: [https://www.postgresql.org/docs/16/sql-copy.html](https://www.postgresql.org/docs/16/sql-copy.html)

Postgres unnest: [https://www.postgresql.org/docs/current/functions-array.html#id-1.5.8.25.6.2.2.19.1.1.1](https://www.postgresql.org/docs/current/functions-array.html#id-1.5.8.25.6.2.2.19.1.1.1)

Postgres populate (where it says copy and prepared transaction are the fastest): [https://www.postgresql.org/docs/current/populate.html](https://www.postgresql.org/docs/current/populate.html)

Postgres prepared transaction: [https://www.postgresql.org/docs/current/sql-prepare-transaction.html](https://www.postgresql.org/docs/current/sql-prepare-transaction.html)

eyre crate: [https://crates.io/crates/eyre](https://crates.io/crates/eyre)

SQLx discussion of why we need &mut *: [https://github.com/launchbadge/sqlx/issues/2606](https://github.com/launchbadge/sqlx/issues/2606)

Tokio tutorial: [https://tokio.rs/tokio/tutorial](https://tokio.rs/tokio/tutorial) -- Watch live at https://www.twitch.tv/brookzerker




Other Videos By Brooks Builds (brookzerker)


2023-10-16Stream archive: recording SQLx Rust joins lesson and starting assessment (2023-10-10)
2023-10-15Stream archive: Finishing article for SQLx Rust many to many joins (2023-10-09 afternoon)
2023-10-14Stream archive: experimenting with many to many join using sqlx rust (2023-10-09)
2023-10-13Stream archive: sqlx rust seeding, offline mode, joins (2023-10-06 afternoon)
2023-10-12Stream archive: finished sqlx Rust migration article and recording migration video (2023-10-06)
2023-10-11Stream archive: Exploring how we might seed with SQLx (2023-10-05)
2023-10-10Stream archive: experimenting with how to seed with SQLx Rust (2023-10-04 afternoon)
2023-10-09Stream archive: Writing article for sqlx rust migrations (2023-10-04)
2023-10-08Stream archive: Recording SQLx Rust bulk insert with UNNEST (2023-10-03 afternoon)
2023-10-07Stream archive: Finishing SQLx Rust article for bulk inserts with UNNEST (2023-10-03)
2023-10-06Stream archive: Recording video for transaction bulk insert with sqlx rust (2023-10-02 afternoon)
2023-10-04Stream archive: Bulk inserting using transactions with SQLx (2023-10-02)
2023-10-03Stream archive: Recording lesson for SQLx and investigating bulk inserts (2023-09-29)
2023-10-02Stream archive: CRUD with Rust + Postgres (2023-09-29)
2023-10-01Stream archive: Using SQLx Rust to insert into a Postgres Database (2023-09-28 evening)
2023-09-30Stream archive: Which SQLx Rust function or macro should we use? (2023-09-28)
2023-09-29Stream archive: Redoing the connection lesson and learning sqlx queries (2023-09-27 evening)
2023-09-28Stream archive: SQLx Rust (2023-09-27)
2023-09-27Stream archive: Starting article on sqlx and rust! (2023-09-23)
2023-09-27Channel update - My job situation changed!
2023-09-26Stream archive: Reviewing Redis in Axum article and recording a video (2023-09-25 evening)



Tags:
bulk insert
games
postgres
rust
sqlx rust
transaction
twitch
sql