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

Improve MySQL Snapshot #1303

Closed
altmannmarcelo opened this issue Jun 26, 2024 · 0 comments
Closed

Improve MySQL Snapshot #1303

altmannmarcelo opened this issue Jun 26, 2024 · 0 comments
Assignees

Comments

@altmannmarcelo
Copy link
Contributor

Description

Currently we run a SELECT * FROM table to do snapshot. This works fine for small tables, but we should adjust it to take advantage of PK/UK and fetch data in batches.

Change in user-visible behavior

Requires documentation change

@altmannmarcelo altmannmarcelo self-assigned this Jun 26, 2024
readysetbot pushed a commit that referenced this issue Jul 2, 2024
Adjust the MySQL snapshot to use the new snapshot type. The snapshot
type checks if table has a primary key or unique key and uses it to
define batches to query the table, making it less intrusive, specially
for large tables. In case the table does not have a primary key or
unique key, the snapshot will do a full table scan.

Fixes: REA-4477
Fixes: #1303

Release-Note-Core: Enhance MySQL snapshot to use Primary Key or unique
   key when available. This makes the snapshot less intrusive than a
   `SELECT *` (Full Table Scan) for large tables.

Change-Id: Iafda6ea6c74888262a0eea8bc1e880a3214b068a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant