Loading tutorials
INSERT, UPDATE, SELECT, primary keys) and that you know what a table constraint is. The Python example uses the standard library only. You don't need to know ON CONFLICT yet. A later chapter covers it.6 min readINSERT, SELECT, foreign keys) and know what a primary key and a unique constraint are. The examples use PostgreSQL. The previous chapter introduced external IDs, the identifiers another system assigns to its records. Here you decide where that identi5 min readINSERT, UPDATE, SELECT) and understand primary keys and unique constraints. The earlier chapters gave the customers table a unique constraint on (source_system, external_id). Here you use that constraint to write the upsert in PostgreSQL.6 min readINSERT and UPDATE statements. It also assumes you have seen the customers table with a unique constraint on (source_system, external_id) and the INSERT ... ON CONFLICT DO UPDATE statement from the previous chapters. The Python example uses the s6 min readINSERT ... ON CONFLICT statement from the previous chapter. It also assumes that customers has a unique constraint on (source_system, external_id). Examples use PostgreSQL, plus one runnable Python/SQLite script.5 min readINSERT ... ON CONFLICT DO UPDATE statement keyed on a unique (source_system, external_id) constraint. It also assumes you know what a transaction is. Here you will move from one record per statement to loading thousands of records efficiently and safel6 min readINSERT ... ON CONFLICT DO UPDATE statement. It also assumes you have a table with a unique constraint on (source_system, external_id), as in the earlier chapters, and that you can read basic Python. The examples use the customers table from those6 min readINSERT ... ON CONFLICT DO UPDATE keyed on a unique external ID. It also assumes you know why the load must be idempotent. If those are new, review the earlier chapters on the SQL upsert and idempotent loads first.6 min readON CONFLICT. You should also know basic HTTP: methods, status codes, headers, and JSON bodies. Here the same idea moves from a database statement to a web request. The client names the6 min readUNIQUE (source_system, external_id) constraint on your table, and have written an INSERT ... ON CONFLICT DO UPDATE statement. Examples use PostgreSQL, plus one Python script t6 min read