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

Support using temporary files for queries that require a lot of memory #9186

Closed
dayuanyuan1989 opened this issue Jan 25, 2019 · 6 comments
Closed
Labels
epic/memory-management feature/accepted This feature request is accepted by product managers sig/execution SIG execution type/question

Comments

@dayuanyuan1989
Copy link

dayuanyuan1989 commented Jan 25, 2019

Question

Before asking a question, make sure you have:

I run a sql statement in tidb, the sql statement has some join.

I set the tidb oom=cancel in tidb configuration

The query always be cancelled as it use a large memroy


Are there any way to control the memory of single sql query? But not to kill it

@alivxxx
Copy link
Contributor

alivxxx commented Jan 25, 2019

@dayuanyuan1989 Sorry I don't understand what do you expect to see and what you see instead?

@zz-jason
Copy link
Member

zz-jason commented Jan 25, 2019

Are there any way to control the memory of single sql query? But not to kill it

@dayuanyuan1989 Do you mean to spill the data to disk to allow the query to be executed successfully?

@dayuanyuan1989
Copy link
Author

@zz-jason yes

@morgo morgo changed the title Tidb has any way to control memory usage in single query Support using temporary files for queries that require a lot of memory Jan 28, 2019
@ghost ghost added this to Need Triage in Feature Request Kanban via automation Jul 23, 2020
@ghost
Copy link

ghost commented Jul 23, 2020

@zz-jason Should this be considered a duplicate of #11607 ?

@zz-jason
Copy link
Member

@zz-jason Should this be considered a duplicate of #11607 ?

I think so. But if the join in this issue is merge join, #11607 can not cover that.

@github-actions github-actions bot added this to Need Triage in Question and Bug Reports Jul 24, 2020
@github-actions github-actions bot added this to Issue Backlog: Need Triage in SIG Runtime Kanban Jul 24, 2020
@zz-jason zz-jason moved this from Need Triage to Accepted: Priority/P0 in Feature Request Kanban Jul 27, 2020
@ghost ghost removed this from Need Triage in Question and Bug Reports Jul 28, 2020
@zz-jason zz-jason added the feature/accepted This feature request is accepted by product managers label Jul 29, 2020
@jebter
Copy link

jebter commented Jun 5, 2024

Please refer: https://docs.pingcap.com/tidb/stable/configure-memory-usage#disk-spill. I will close this issue. If there are any updates, you can reopen it.

@jebter jebter closed this as completed Jun 5, 2024
Feature Request Kanban automation moved this from Accepted to Finished Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic/memory-management feature/accepted This feature request is accepted by product managers sig/execution SIG execution type/question
Projects
SIG Runtime Kanban
  
Issue Backlog: Need Triage
Development

No branches or pull requests

4 participants