From dbd8b1b01d5a1cdd512107aabff004de735d4108 Mon Sep 17 00:00:00 2001 From: Pavan-Nambi Date: Fri, 24 Oct 2025 18:10:10 +0530 Subject: [PATCH] change weight and add pragma_weight to querytypes --- simulator/profiles/query.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simulator/profiles/query.rs b/simulator/profiles/query.rs index 46d8f23b5..867ea29e7 100644 --- a/simulator/profiles/query.rs +++ b/simulator/profiles/query.rs @@ -43,7 +43,7 @@ impl Default for QueryProfile { drop_table_weight: 2, alter_table_weight: 2, drop_index: 2, - pragma_weight: 100, //TODO change this back to 2 + pragma_weight: 2 } } } @@ -59,6 +59,7 @@ impl QueryProfile { + self.delete_weight + self.drop_table_weight + self.alter_table_weight + + self.pragma_weight } } @@ -70,4 +71,5 @@ pub enum QueryTypes { Update, Delete, DropTable, + pragma_weight, }