You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we do a full index scan to get the exact number of rows during MySQL snapshot. This is a costly operation for big tables. We should find a way to not require it.
Change in user-visible behavior
Requires documentation change
The text was updated successfully, but these errors were encountered:
This commit removes the requirement for MySQL snapshot for requiring
the exact number of rows it will snapshot in advance. We use the
number of rows to show snapshot progress and also to know for sure
that we have snapshoted the required number of rows. Querying the
table to get the number of rows in MySQL requires a full index scan.
This can be time consuming for large tables.
We don't necessarlly need to know the exact number of tables. In a
server with up to date table statistics the estimation of table rows
will be pretty much accurate.
Fixes: #REA-4886
Closes: #1386
Release-Note-Core: Improve MySQL snapshot performance by removing the
need for exact row count for snapshot.
Change-Id: Idf887a0b8abb8e20113b3585af49c75d3da8b05f
This commit removes the requirement for MySQL snapshot for requiring
the exact number of rows it will snapshot in advance. We use the
number of rows to show snapshot progress and also to know for sure
that we have snapshoted the required number of rows. Querying the
table to get the number of rows in MySQL requires a full index scan.
This can be time consuming for large tables.
We don't necessarlly need to know the exact number of tables. In a
server with up to date table statistics the estimation of table rows
will be pretty much accurate.
Fixes: #REA-4886
Closes: #1386
Release-Note-Core: Improve MySQL snapshot performance by removing the
need for exact row count for snapshot.
Change-Id: Idf887a0b8abb8e20113b3585af49c75d3da8b05f
Description
Currently we do a full index scan to get the exact number of rows during MySQL snapshot. This is a costly operation for big tables. We should find a way to not require it.
Change in user-visible behavior
Requires documentation change
The text was updated successfully, but these errors were encountered: