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

multiple filters on single kind create multiple index entries #108

Open
NickFranceschina opened this issue Dec 20, 2016 · 0 comments
Open

Comments

@NickFranceschina
Copy link

see my comment here (not sure if it would be seen, so posting an issue):

3bcd874#commitcomment-20242630

because this .Get happens inside of the for loop over the filters... if I have multiple filters, then the SDK ends up generating multiple indexes, each one with progressively more properties

for example... if I had filters=[('one', '=', 'a'), ('two', '=', 'b'), ('three', '=', 3)] ... then after this loop completes, the SDK has created all of these in my index.yaml:

- kind: MyModel
  properties:
  - name: one
  - name: __scatter__

- kind: MyModel
  properties:
  - name: one
  - name: two
  - name: __scatter__

- kind: MyModel
  properties:
  - name: one
  - name: two
  - name: three
  - name: __scatter__

is this expected behavior?

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

No branches or pull requests

1 participant