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

Secondary indexes implementation #544

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

merlimat
Copy link
Collaborator

@merlimat merlimat commented Oct 6, 2024

Server side implementation for secondary indexes.

@merlimat merlimat merged commit a6aae96 into streamnative:main Oct 7, 2024
5 checks passed
@merlimat merlimat deleted the sec-idx branch October 7, 2024 17:41
merlimat pushed a commit that referenced this pull request Oct 10, 2024
### Motivation

In the old logic, there's the wrong usage for iteration is as follow:

```golang

for it.Next() {
	err := updateOperationCallback.OnDelete(batch, it.Key())
	if err != nil {
		return errors.Wrap(multierr.Combine(err, it.Close()), "oxia db: failed to delete range")
	}
}
```

After pr #544, we already added a `deleteRange` callback. Therefore, we
can delete this wrong logic directly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant