-
Notifications
You must be signed in to change notification settings - Fork 44
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: wp-cli/search-replace-command
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6b195e3
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: wp-cli/search-replace-command
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c238204
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 8 commits
- 2 files changed
- 2 contributors
Commits on May 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for cbfbaf7 - Browse repository at this point
Copy the full SHA cbfbaf7View commit details -
Use single test that works for all tested PHP versions
Co-authored-by: Alain Schlesser <alain.schlesser@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b1671b5 - Browse repository at this point
Copy the full SHA b1671b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 536a527 - Browse repository at this point
Copy the full SHA 536a527View commit details -
Merge pull request #181 from brandonpayton/fix-regex-invalid-delimite…
…r-test-for-php-8-2
Configuration menu - View commit details
-
Copy full SHA for 5c54825 - Browse repository at this point
Copy the full SHA 5c54825View commit details -
Make PHP replacement more efficient
This change makes PHP replacement queries and memory usage more efficient. It improves the primary key SELECT queries by eliminating the use of OFFSET because OFFSET requires that the database consider all rows up to OFFSET before taking rows up to the LIMIT. The new query relies on primary key conditions to more efficiently eliminate previous rows from consideration. This way, the database can use an index to identify rows with keys greater than those of the previous chunk. It improves memory usage by doing updates along the way rather than storing all a column's updates in memory until the end. At Automattic, when we limit search-replace to 4GB of memory, we sometimes exceed that limit for large sites. It's possible there are other things that contribute to high memory usage within the search-replace command, but as a first step, we can reduce memory requirements by no longer keeping all updated column values in memory simultaneously.
Configuration menu - View commit details
-
Copy full SHA for 56faa0c - Browse repository at this point
Copy the full SHA 56faa0cView commit details
Commits on May 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for efef299 - Browse repository at this point
Copy the full SHA efef299View commit details -
Configuration menu - View commit details
-
Copy full SHA for 089244d - Browse repository at this point
Copy the full SHA 089244dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c238204 - Browse repository at this point
Copy the full SHA c238204View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 6b195e3...c238204