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

Feature: DELETE statement LIMIT clause support #3230

Open
2 tasks done
arkamfahry opened this issue Dec 28, 2023 · 2 comments
Open
2 tasks done

Feature: DELETE statement LIMIT clause support #3230

arkamfahry opened this issue Dec 28, 2023 · 2 comments
Labels
feature New feature or request topic:surrealql This is related to the SurrealQL query language triage This issue is new

Comments

@arkamfahry
Copy link

Is your feature request related to a problem?

When performing bulk deletes or when deleting large data sets without a LIMIT clause could become a performance bottleneck and it can slow down the DELETE statement.

Describe the solution

Give the DELETE statement the ability to limit the number of records being deleted by adding a LIMIT clause to the DELETE statement

DELETE users LIMIT 100;

Alternative methods

N/A

SurrealDB version

1.0.2 for windows on x86_64

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@arkamfahry arkamfahry added feature New feature or request triage This issue is new labels Dec 28, 2023
@kearfy kearfy added the topic:surrealql This is related to the SurrealQL query language label Jan 16, 2024
@kearfy
Copy link
Member

kearfy commented Jan 16, 2024

I started work on this in #3008 previously, linking for reference

@Dhghomon
Copy link
Contributor

I was just about to ask about this and I see it's on the way! Will be a very nice addition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request topic:surrealql This is related to the SurrealQL query language triage This issue is new
Projects
None yet
Development

No branches or pull requests

3 participants