-
Notifications
You must be signed in to change notification settings - Fork 46
Add smart URL transformation support for search-replace command #209
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
Changes from 1 commit
60d0715
5ffe00f
1d96b47
e0a0b7f
764b577
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,7 +10,7 @@ Quick links: [Using](#using) | [Installing](#installing) | [Contributing](#contr | |||||
| ## Using | ||||||
|
|
||||||
| ~~~ | ||||||
| wp search-replace <old> <new> [<table>...] [--dry-run] [--network] [--all-tables-with-prefix] [--all-tables] [--export[=<file>]] [--export_insert_size=<rows>] [--skip-tables=<tables>] [--skip-columns=<columns>] [--include-columns=<columns>] [--precise] [--recurse-objects] [--verbose] [--regex] [--regex-flags=<regex-flags>] [--regex-delimiter=<regex-delimiter>] [--regex-limit=<regex-limit>] [--format=<format>] [--report] [--report-changed-only] [--log[=<file>]] [--before_context=<num>] [--after_context=<num>] | ||||||
| wp search-replace <old> <new> [<table>...] [--dry-run] [--network] [--all-tables-with-prefix] [--all-tables] [--export[=<file>]] [--export_insert_size=<rows>] [--skip-tables=<tables>] [--skip-columns=<columns>] [--include-columns=<columns>] [--smart-url] [--analyze-tables] [--precise] [--recurse-objects] [--verbose] [--regex] [--regex-flags=<regex-flags>] [--regex-delimiter=<regex-delimiter>] [--regex-limit=<regex-limit>] [--format=<format>] [--report] [--report-changed-only] [--log[=<file>]] [--before_context=<num>] [--after_context=<num>] | ||||||
| ~~~ | ||||||
|
|
||||||
| Searches through all rows in a selection of tables and replaces | ||||||
|
|
@@ -73,6 +73,23 @@ change primary key values. | |||||
| Perform the replacement on specific columns. Use commas to | ||||||
| specify multiple columns. | ||||||
|
|
||||||
| [--smart-url] | ||||||
| Enable smart URL mode. Automatically skips 75+ WordPress core columns | ||||||
| that cannot contain URLs (like post_type, post_status, user_pass, etc.), | ||||||
| significantly improving performance for URL replacements. This is | ||||||
| particularly useful when migrating sites or changing domain names. | ||||||
| Performance: ~34% faster on large databases. | ||||||
|
||||||
| Performance: ~34% faster on large databases. | |
| Performance: ~34–42% faster on large databases (depending on the database). |
Uh oh!
There was an error while loading. Please reload this page.