]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/bdb_mysql.h
Try to use multi-row insert statements for mysql.
[bacula/bacula] / bacula / src / cats / bdb_mysql.h
index 6868708e4ede5d668965731d038b5f1389cae641..3eddf2477fea3dbf51be8b0dae2a5975a51c927d 100644 (file)
 #ifndef __BDB_MYSQL_H_
 #define __BDB_MYSQL_H_ 1
 
+/*
+ * Number of insert statements to batch-up in batch insert
+ * mode. We use multi-row inserts only in the batch mode
+ * on the private database connection.
+ */
+#define MYSQL_CHANGES_PER_BATCH_INSERT 32
+
 class B_DB_MYSQL: public B_DB_PRIV {
 private:
    MYSQL *m_db_handle;