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

Allow skipping specific DataObject models from "check and repair" during dev/build #10495

Closed
5 tasks done
ssmarco opened this issue Sep 8, 2022 · 0 comments
Closed
5 tasks done

Comments

@ssmarco
Copy link
Contributor

ssmarco commented Sep 8, 2022

Description

I have a use case where a large database but only a few tables reaching millions of records, say 3 tables. This significantly slows down dev/build, however the current solution is to configure like the schema manager like below 👍 :

SilverStripe\ORM\Connect\MySQLSchemaManager:
  check_and_repair_on_build: false

Because only a few tables are to be concerned with, I would like to suggest that we add another configuration to exclude them. In this way, smaller tables are still checked for consistency and health.

Acceptance criteria

  • There's a way to manually turn off check_and_repair for specific DataObjects
  • Config option should be specific to DataObjects rather than table names
  • Behaviour is inherited by subclasses.
  • Change is targeted at CMS 5.1
  • Relevant doc is updated

PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants