diff --git a/src/Simplex/Chat/Store/SQLite/Migrations/agent_query_plans.txt b/src/Simplex/Chat/Store/SQLite/Migrations/agent_query_plans.txt index 4becf5a2ee..fdcac9134a 100644 --- a/src/Simplex/Chat/Store/SQLite/Migrations/agent_query_plans.txt +++ b/src/Simplex/Chat/Store/SQLite/Migrations/agent_query_plans.txt @@ -273,16 +273,6 @@ Query: Plan: SEARCH connections USING PRIMARY KEY (conn_id=?) -Query: - SELECT user_id FROM users u - WHERE u.deleted = ? - AND NOT EXISTS (SELECT c.conn_id FROM connections c WHERE c.user_id = u.user_id) - -Plan: -SCAN u -CORRELATED SCALAR SUBQUERY 1 -SEARCH c USING COVERING INDEX idx_connections_user (user_id=?) - Query: SELECT user_id FROM users u WHERE u.user_id = ? @@ -565,21 +555,6 @@ Query: Plan: SEARCH conn_confirmations USING COVERING INDEX idx_conn_confirmations_conn_id (conn_id=?) -Query: - DELETE FROM encrypted_rcv_message_hashes - WHERE encrypted_rcv_message_hash_id IN ( - SELECT encrypted_rcv_message_hash_id - FROM encrypted_rcv_message_hashes - WHERE created_at < ? - ORDER BY created_at ASC - LIMIT ? - ) - -Plan: -SEARCH encrypted_rcv_message_hashes USING INTEGER PRIMARY KEY (rowid=?) -LIST SUBQUERY 1 -SEARCH encrypted_rcv_message_hashes USING COVERING INDEX idx_encrypted_rcv_message_hashes_created_at (created_at