SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
filer.store.mysql: Replace deprecated upsert syntax (#4096)
CommanderRootc2280e94cf21
diff --git a/weed/command/scaffold/filer.toml b/weed/command/scaffold/filer.tomlindex d8833a9174..423d0914e6 100644--- a/weed/command/scaffold/filer.toml+++ b/weed/command/scaffold/filer.toml@@ -61,7 +61,7 @@ connection_max_lifetime_seconds = 0interpolateParams = false# if insert/upsert failing, you can disable upsert or update query syntax to match your RDBMS syntax:enableUpsert = true-upsertQuery = """INSERT INTO `%s` (dirhash,name,directory,meta) VALUES(?,?,?,?) ON DUPLICATE KEY UPDATE meta = VALUES(meta)"""+upsertQuery = """INSERT INTO `%s` (`dirhash`,`name`,`directory`,`meta`) VALUES (?,?,?,?) AS `new` ON DUPLICATE KEY UPDATE `meta` = `new`.`meta`"""[mysql2] # or memsql, tidbenabled = false@@ -85,7 +85,7 @@ connection_max_lifetime_seconds = 0interpolateParams = false# if insert/upsert failing, you can disable upsert or update query syntax to match your RDBMS syntax:enableUpsert = true-upsertQuery = """INSERT INTO `%s` (dirhash,name,directory,meta) VALUES(?,?,?,?) ON DUPLICATE KEY UPDATE meta = VALUES(meta)"""+upsertQuery = """INSERT INTO `%s` (`dirhash`,`name`,`directory`,`meta`) VALUES (?,?,?,?) AS `new` ON DUPLICATE KEY UPDATE `meta` = `new`.`meta`"""[postgres] # or cockroachdb, YugabyteDB# CREATE TABLE IF NOT EXISTS filemeta (