Sha256: 990317852b6a36d00c7c62701df207dd6f3c9e89120b746addb1af09b2833d28

Contents?: true

Size: 515 Bytes

Versions: 5

Compression:

Stored size: 515 Bytes

Contents

# restrict of a page is not optimizable
- alf: |-
    restrict(page(suppliers, [:name], 1, page_size: 5), city: 'Paris')
  optimized: |-
    restrict(page(suppliers, [:name], 1, page_size: 5), city: 'Paris')
# ... but the inner operand is
- alf: |-
    inside = restrict(compact(suppliers), city: 'Paris')
    restrict(page(inside, [:name], 1, page_size: 5), city: 'Paris')
  optimized: |-
    inside = compact(restrict(suppliers, city: 'Paris'))
    restrict(page(inside, [:name], 1, page_size: 5), city: 'Paris')

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-0.16.3 spec/optimizer/restrict/page.yml
alf-0.16.2 spec/optimizer/restrict/page.yml
alf-0.16.1 spec/optimizer/restrict/page.yml
alf-0.16.0 spec/optimizer/restrict/page.yml
alf-0.15.0 spec/optimizer/restrict/page.yml