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

Cherry-pick #7269 to 6.3: Optimize postgresql ingest pipeline #7344

Merged
merged 1 commit into from
Jun 18, 2018

Conversation

ph
Copy link
Contributor

@ph ph commented Jun 15, 2018

Cherry-pick of PR #7269 to 6.3 branch. Original message:

The postgresql ingest pipeline was not performing so well.
This PR use the following rules to improve the situation.

  • Anchor the Regular expression at the begining of the string.
  • Merge the multiple statements into a single RE
  • Do not use back reference for user/host delimiter.

Fixes: #7201

Note to reviewers:

Master branch to ingest 18 documents 26ms, this PR 11 ms.
Not I did not use dissect, since there are variations in the tokens.

The postgresql ingest pipeline was not performing so well.
This PR use the following rules to improve the situation.

- Anchor the Regular expression at the begining of the string.
- Merge the multiple statements into a single RE
- Do not use back reference for user/host delimiter.

Fixes: elastic#7201

Master branch to ingest 18 documents 26ms, this PR 11 ms.
Not I did not use dissect, since there are variations in the tokens.

(cherry picked from commit 4a41587)
@ph ph force-pushed the backport_7269_6.3 branch from 02771ff to 4a31e8b Compare June 15, 2018 15:00
@ruflin ruflin merged commit 385cbb7 into elastic:6.3 Jun 18, 2018
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
The postgresql ingest pipeline was not performing so well.
This PR use the following rules to improve the situation.

- Anchor the Regular expression at the begining of the string.
- Merge the multiple statements into a single RE
- Do not use back reference for user/host delimiter.

Fixes: elastic#7201

Master branch to ingest 18 documents 26ms, this PR 11 ms.
Not I did not use dissect, since there are variations in the tokens.

(cherry picked from commit e801aaa)
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