[MXS-1502] Compacted session command history Created: 2017-10-30  Updated: 2018-06-25  Resolved: 2018-05-08

Status: Closed
Project: MariaDB MaxScale
Component/s: readwritesplit
Affects Version/s: None
Fix Version/s: 2.3.0

Type: Task Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Epic Link: Transparent master failover

 Description   

Overview

The current session command implementation will store all executed session commands regardless of its type. This causes unacceptable memory consumption when executed queries are unique but logically equivalent. An example of this is the USE <database> command which sets the active database for the connection. Only the latest query of this type needs to be stored to retain the state of the session.



 Comments   
Comment by markus makela [ 2018-04-11 ]

Implemented a simple compaction process that retains the first and last execution of each distinct statement.

Generated at Thu Feb 08 04:07:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.