Dont send no-changes transaction to database (#71)

This commit is contained in:
Azrenbeth
2021-09-15 10:09:43 +01:00
committed by GitHub
parent 55ee83ce13
commit 80795aa813

View File

@@ -537,6 +537,11 @@ pub fn send_changes_to_db(
pb.enable_steady_tick(100);
for sql_transaction in generate_sql(old_map, new_map, room_id) {
if sql_transaction.is_empty() {
pb.inc(1);
continue;
}
// commit this change to the database
// N.B. this is a synchronous library so will wait until finished before continueing...
// if want to speed up compressor then this might be a good place to start!