mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-08-01 17:18:31 +08:00
adjust ordering
This commit is contained in:
parent
1ebdbad222
commit
b61e9f6a1a
@ -102,10 +102,6 @@ enabled = false
|
|||||||
dir = "./filerrdb" # directory to store rocksdb files
|
dir = "./filerrdb" # directory to store rocksdb files
|
||||||
|
|
||||||
[mysql] # or memsql, tidb
|
[mysql] # or memsql, tidb
|
||||||
# Empty insertQuery will use the default insert query
|
|
||||||
# example insertQuery can be for UPSERT syntax:
|
|
||||||
# insertQuery = """INSERT INTO ` + "`%s`" + ` (dirhash,name,directory,meta) VALUES(?,?,?,?) ON DUPLICATE KEY UPDATE meta = VALUES(meta)"""
|
|
||||||
insertQuery = ""
|
|
||||||
# CREATE TABLE IF NOT EXISTS filemeta (
|
# CREATE TABLE IF NOT EXISTS filemeta (
|
||||||
# dirhash BIGINT COMMENT 'first 64 bits of MD5 hash value of directory field',
|
# dirhash BIGINT COMMENT 'first 64 bits of MD5 hash value of directory field',
|
||||||
# name VARCHAR(1000) BINARY COMMENT 'directory or file name',
|
# name VARCHAR(1000) BINARY COMMENT 'directory or file name',
|
||||||
@ -124,13 +120,13 @@ connection_max_idle = 2
|
|||||||
connection_max_open = 100
|
connection_max_open = 100
|
||||||
connection_max_lifetime_seconds = 0
|
connection_max_lifetime_seconds = 0
|
||||||
interpolateParams = false
|
interpolateParams = false
|
||||||
|
|
||||||
[mysql2] # or memsql, tidb
|
|
||||||
enabled = false
|
|
||||||
# Empty insertQuery will use the default insert query
|
# Empty insertQuery will use the default insert query
|
||||||
# example insertQuery can be for UPSERT syntax:
|
# example insertQuery can be for UPSERT syntax:
|
||||||
# insertQuery = """INSERT INTO ` + "`%s`" + ` (dirhash,name,directory,meta) VALUES(?,?,?,?) ON DUPLICATE KEY UPDATE meta = VALUES(meta)"""
|
# insertQuery = """INSERT INTO ` + "`%s`" + ` (dirhash,name,directory,meta) VALUES(?,?,?,?) ON DUPLICATE KEY UPDATE meta = VALUES(meta)"""
|
||||||
insertQuery = ""
|
insertQuery = ""
|
||||||
|
|
||||||
|
[mysql2] # or memsql, tidb
|
||||||
|
enabled = false
|
||||||
createTable = """
|
createTable = """
|
||||||
CREATE TABLE IF NOT EXISTS ` + "`%s`" + ` (
|
CREATE TABLE IF NOT EXISTS ` + "`%s`" + ` (
|
||||||
dirhash BIGINT,
|
dirhash BIGINT,
|
||||||
@ -149,12 +145,12 @@ connection_max_idle = 2
|
|||||||
connection_max_open = 100
|
connection_max_open = 100
|
||||||
connection_max_lifetime_seconds = 0
|
connection_max_lifetime_seconds = 0
|
||||||
interpolateParams = false
|
interpolateParams = false
|
||||||
|
|
||||||
[postgres] # or cockroachdb, YugabyteDB
|
|
||||||
# Empty insertQuery will use the default insert query
|
# Empty insertQuery will use the default insert query
|
||||||
# example insertQuery can be for UPSERT syntax:
|
# example insertQuery can be for UPSERT syntax:
|
||||||
# insertQuery = """INSERT INTO "%[1]s" (dirhash,name,directory,meta) VALUES($1,$2,$3,$4) ON CONFLICT ON CONSTRAINT "%[1]s_pkey" DO UPDATE SET meta = EXCLUDED.meta WHERE "%[1]s".meta != EXCLUDED.meta"""
|
# insertQuery = """INSERT INTO ` + "`%s`" + ` (dirhash,name,directory,meta) VALUES(?,?,?,?) ON DUPLICATE KEY UPDATE meta = VALUES(meta)"""
|
||||||
insertQuery = ""
|
insertQuery = ""
|
||||||
|
|
||||||
|
[postgres] # or cockroachdb, YugabyteDB
|
||||||
# CREATE TABLE IF NOT EXISTS filemeta (
|
# CREATE TABLE IF NOT EXISTS filemeta (
|
||||||
# dirhash BIGINT,
|
# dirhash BIGINT,
|
||||||
# name VARCHAR(65535),
|
# name VARCHAR(65535),
|
||||||
@ -173,13 +169,13 @@ sslmode = "disable"
|
|||||||
connection_max_idle = 100
|
connection_max_idle = 100
|
||||||
connection_max_open = 100
|
connection_max_open = 100
|
||||||
connection_max_lifetime_seconds = 0
|
connection_max_lifetime_seconds = 0
|
||||||
|
|
||||||
[postgres2]
|
|
||||||
enabled = false
|
|
||||||
# Empty insertQuery will use the default insert query
|
# Empty insertQuery will use the default insert query
|
||||||
# example insertQuery can be for UPSERT syntax:
|
# example insertQuery can be for UPSERT syntax:
|
||||||
# insertQuery = """INSERT INTO "%[1]s" (dirhash,name,directory,meta) VALUES($1,$2,$3,$4) ON CONFLICT ON CONSTRAINT "%[1]s_pkey" DO UPDATE SET meta = EXCLUDED.meta WHERE "%[1]s".meta != EXCLUDED.meta"""
|
# insertQuery = """INSERT INTO "%[1]s" (dirhash,name,directory,meta) VALUES($1,$2,$3,$4) ON CONFLICT ON CONSTRAINT "%[1]s_pkey" DO UPDATE SET meta = EXCLUDED.meta WHERE "%[1]s".meta != EXCLUDED.meta"""
|
||||||
insertQuery = ""
|
insertQuery = ""
|
||||||
|
|
||||||
|
[postgres2]
|
||||||
|
enabled = false
|
||||||
createTable = """
|
createTable = """
|
||||||
CREATE TABLE IF NOT EXISTS "%s" (
|
CREATE TABLE IF NOT EXISTS "%s" (
|
||||||
dirhash BIGINT,
|
dirhash BIGINT,
|
||||||
@ -199,6 +195,10 @@ sslmode = "disable"
|
|||||||
connection_max_idle = 100
|
connection_max_idle = 100
|
||||||
connection_max_open = 100
|
connection_max_open = 100
|
||||||
connection_max_lifetime_seconds = 0
|
connection_max_lifetime_seconds = 0
|
||||||
|
# Empty insertQuery will use the default insert query
|
||||||
|
# example insertQuery can be for UPSERT syntax:
|
||||||
|
# insertQuery = """INSERT INTO "%[1]s" (dirhash,name,directory,meta) VALUES($1,$2,$3,$4) ON CONFLICT ON CONSTRAINT "%[1]s_pkey" DO UPDATE SET meta = EXCLUDED.meta WHERE "%[1]s".meta != EXCLUDED.meta"""
|
||||||
|
insertQuery = ""
|
||||||
|
|
||||||
[cassandra]
|
[cassandra]
|
||||||
# CREATE TABLE filemeta (
|
# CREATE TABLE filemeta (
|
||||||
|
Loading…
Reference in New Issue
Block a user