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

index maybe not used on maintenance #131

Open
MengqiWu opened this issue Jul 1, 2021 · 1 comment
Open

index maybe not used on maintenance #131

MengqiWu opened this issue Jul 1, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@MengqiWu
Copy link

MengqiWu commented Jul 1, 2021

in apply_delta() maybe just use all attributes not consider the index created when create ivm
/*
* For views without aggregates, all attributes are used as keys to identify a
* tuple in a view.
*/
if (!query->hasAggs)
keys = lappend(keys, attr);

@yugo-n yugo-n added the enhancement New feature or request label Aug 6, 2021
@yugo-n
Copy link
Collaborator

yugo-n commented Aug 6, 2021

// I'm sorry for late replay.

Thank you for your feedback! That's good point.
Actually, the index is used even when all attributes are used as a key, but we don't have to use some attributes if we have a unique key. I'll consider to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants