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

Commit with deletions is very slow #7254

Closed
swingbit opened this issue Feb 18, 2022 · 2 comments
Closed

Commit with deletions is very slow #7254

swingbit opened this issue Feb 18, 2022 · 2 comments
Assignees
Labels
bug
Milestone

Comments

@swingbit
Copy link

@swingbit swingbit commented Feb 18, 2022

Describe the bug
Committing a transaction that has removed a considerable amount of rows takes longer than reasonable.

To Reproduce

set optimizer='sequential_pipe';

start transaction;

-- a table with 100M random integers, with about 10M unique values
CREATE TABLE x AS
  SELECT rand() % (10 * 1000 * 1000) as a1
  FROM sys.generate_series(1, (100 * 1000 * 1000));

-- without this delete (about 10%), the commit takes less than 1s
-- with the delete, the commit takes forever (I had to kill the server after waiting longer than 30 minutes)

-- DELETE FROM x
-- WHERE a1 in (SELECT rand() % (10 * 1000 * 1000) FROM sys.generate_series(1, (1000 * 1000)));

commit;

Software versions

  • MonetDB version number 11.43.10
  • OS and version: Fedora 35
  • self-installed and compiled
@swingbit
Copy link
Author

@swingbit swingbit commented Feb 18, 2022

I tried to let it finish. It took 43 minutes.

@njnes njnes added the bug label Feb 25, 2022
@sjoerdmullender
Copy link
Member

@sjoerdmullender sjoerdmullender commented Feb 25, 2022

I believe this is now fixed.

@sjoerdmullender sjoerdmullender added this to the NEXTRELEASE milestone Feb 25, 2022
@sjoerdmullender sjoerdmullender removed this from the NEXTRELEASE milestone Apr 8, 2022
@sjoerdmullender sjoerdmullender added this to the Jan2022-SP2 milestone Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug
Projects
None yet
Development

No branches or pull requests

3 participants