shopware5 / devdocs

Shopware 5 Developers Website
https://developers.shopware.com
137 stars 228 forks source link

Clarify minimal transaction isolation level #1064

Closed jonashrem closed 2 years ago

jonashrem commented 4 years ago

Description

MySQL supports multiple Isolation Levels for InnoDB which are set to "REPEATABLE READ" by default. I would like to know which of those levels are supported by shopware, as Isolation Level with lesser consistent, can always perform better in some situations.

Possible solutions

I would like to know which of the Isolation Levels ( https://dev.mysql.com/doc/refman/5.7/en/innodb-transaction-isolation-levels.html#isolevel_read-committed ) can safely be used with (stock) shopware.

Additional information

See also:

mitelg commented 2 years ago

this sounds like a very individual question for our support team and nothing we should document generally :slightly_smiling_face:

so I will close this issue.

bcremer commented 2 years ago

@mitelg To be honest, that sounds like a very legit question and is not individual at all and should documented in the requirements document.

@jonashrem I'd not run any other isolation level than the default REPEATABLE READ as this is the default level that is used for all automated and manual tests as far as I can tell from the source.

mitelg commented 2 years ago

@bcremer to be honest I have never heard a question like this before.

but maybe as I am not that good into databases, I considered this as a very individual question :see_no_evil: sorry for that and thank you very much for answering :slightly_smiling_face: :+1:

mitelg commented 2 years ago

@jonashrem okay, after reading a bit through the posted articles, I would also suggest the default REPEATABLE READ

and as @bcremer already stated, other isolation levels are not used and tested by us, so using them goes to own risk.

I will have a look if I could put it somewhere sensible :+1:

thank you all :wave:

bcremer commented 2 years ago

@mitelg No worries, thanks for re-considering.

mitelg commented 2 years ago

thank you, for having Shopware still in mind :hugs: :blue_heart:

bcremer commented 2 years ago

Harry-Potter Always