Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switched to ROW_FORMAT DYNAMIC for better compatibility with MariaDB 10.3 / 10.11 #4027

Merged
merged 7 commits into from
Jun 26, 2024

Conversation

alexh-swdev
Copy link
Contributor

Description (*)

I increased the version of Mage/Catalog to run a database migration script to alter the tables catalog/product_relations and catalog_product_website to not use ROW_FORMAT=FIXED anymore.

I decided to instead use ROW_FORMAT=DYNAMIC because it seems to be the standard on MariaDB: https://mariadb.com/kb/en/innodb-dynamic-row-format/

For more, see the discussion #3962

Fixed Issues (if relevant)

Database fails to get imported to MariaDB 10.3.* and 10.11.* if InnoDB tables have ROW_FORMAT=FIXED

Questions or comments

I did manual tests on MariaDB 10.3 and 10.11. The results are looking good to me. (Meaning: the migration ran throug with success, the shops are still working :) , no apparent error messages or strange behavior)

I guess this should also work on MySQL but I don't have any at hand for testing. So maybe, before approving it, somenone wants to do some testing here.

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)
  • Add yourself to contributors list

…er the tables' row formats of catalog/product_website and catalog/product_relation from FIXED to DYNAMIC
@github-actions github-actions bot added the Component: Catalog Relates to Mage_Catalog label Jun 3, 2024
@fballiano
Copy link
Contributor

Is this also supposed to fix new install? cause if I'm not mistaken it seems to fix only already installed projects

@alexh-swdev
Copy link
Contributor Author

I only had already installed shops in my mind. I'll check against a new shop in the next couple of days.

@fballiano
Copy link
Contributor

  • tested the upgrade scripts on mysql 8.3, they work ok
  • modified all sql scripts too for new installations (will test soon)

@fballiano
Copy link
Contributor

also tested a new installation with no problem

Copy link
Contributor

@fballiano fballiano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approving but waiting for more feedback before merging

@fballiano fballiano changed the title Improve compatibility with MariaDB 10.3 / 10.11 Switched to ROW_FORMAT DYNAMIC for better compatibility with MariaDB 10.3 / 10.11 Jun 4, 2024
@fballiano
Copy link
Contributor

since nobody pitched in, I'll merge.

@fballiano fballiano merged commit 61d8c13 into OpenMage:main Jun 26, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Catalog Relates to Mage_Catalog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants