[MDEV-31396] Transaction isolation level configurable per account/user Created: 2023-06-03  Updated: 2023-06-25

Status: Open
Project: MariaDB Server
Component/s: Authentication and Privilege System
Fix Version/s: None

Type: Task Priority: Major
Reporter: Oli Sennhauser Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

It would be interesting to have the default transaction isolation level configurable on an account or user level (similar to max_statement_time or max_user_connections).

Many customers want to consolitdate their zoo of applications into one mariadb server. but some of the applications require a different isolation level (read committed) than default (repeatable read). Because those are commercial products (atlassian tools for example). the code is/cannot be changed.

The result is, those tools cannot be consolidated OR all the other applications have to cope with the trx isolation level read committed. which is uncertain if it works.

This could also be an interesting requirement for mariadb cloud providers...



 Comments   
Comment by Oli Sennhauser [ 2023-06-03 ]

ALTER USER 'app'@'%' WITH DEFAULT TRANSACTION ISOLATION LEVEL REPEATABLE-READ;

Comment by Sergei Golubchik [ 2023-06-25 ]

technically, you can do that with --init-connect script. this would be a more universal approach that extending the syntax and system tables for every new setting someone would want to configure per user.

Generated at Thu Feb 08 10:23:33 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.