Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Lessen context duplication in db search.#55

Merged
danielbachhuber merged 2 commits into
masterwp-cli/db-command:masterfrom
append_nextwp-cli/db-command:append_nextCopy head branch name to clipboard
Oct 13, 2017
Merged

Lessen context duplication in db search.#55
danielbachhuber merged 2 commits into
masterwp-cli/db-command:masterfrom
append_nextwp-cli/db-command:append_nextCopy head branch name to clipboard

Conversation

@gitlost

@gitlost gitlost commented Oct 12, 2017

Copy link
Copy Markdown
Contributor

Related issue #54 and PRs wp-cli/search-replace-command#35 and wp-cli/php-cli-tools#123

Lessens context duplication in db search by shortening and appending context if it overlaps with the next match.

This duplicates the loop logic in search-replace --log by using a $last_offset, which improves output and performance.

Also adds the re-check of encoding per value done in that PR so as not to mistakenly detect all legacy-encoded input as ASCII if the first value happens to be that.

Also exercises the safe_substr() fix more by adding test to search with large data.

@gitlost gitlost requested a review from a team October 13, 2017 00:24
@danielbachhuber danielbachhuber added this to the 1.2.3 milestone Oct 13, 2017
@danielbachhuber danielbachhuber merged commit 16e42ed into master Oct 13, 2017
@danielbachhuber danielbachhuber deleted the append_next branch October 13, 2017 12:49
danielbachhuber added a commit that referenced this pull request Nov 18, 2022
Lessen context duplication in db search.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.