Filterer

Languages and libraries

ruby gem

SHOW HN2013

Filterer

A gem to stop progressively building ActiveRecord queries

github.com

#activerecord#rails#query builder#ruby gem#scopes

17points
8comments
#1,054of 1,739 in 2013
Top 61%of 2013 by points

How HN took it

MixedNo clear lean

2 positive, 2 neutral or asking, 0 mixed, 1 critical, out of 5 comments about the project. Thread score +0.10.

Idea: 2 for, 0 againstPerformance: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Good idea, especially for filtering

    From 2 comments
    • Nice. I've built something very similar in my current app. In my app it's called `SearchModel` and descendants live within the `app/models` dir. I include some modules from…
      troels on HN
    • It's basically a service object specifically built for scopes with its own DSL. I like it :) Correct me if I am wrong.
      seivan on HN

Objections

  • Indexing every column combination is impractical for large datasets

    From 1 comment
    • While I think this is a good idea for smaller data sets, it just isn't feasible for larger data sets that require indices. Having every combination of columns as indices is just…
      mikkelewis on HN

Questions

  • How does it differ from has_scope?

    From 1 comment
    • Differences with https://github.com/plataformatec/has_scope?
      octernion on HN

Alternatives named

  • has_scope

    From 1 comment
    • Differences with https://github.com/plataformatec/has_scope?
      octernion on HN
  • ElasticSearch or Sphinx for faceting large datasets

    From 1 comment
    • While I think this is a good idea for smaller data sets, it just isn't feasible for larger data sets that require indices. Having every combination of columns as indices is just…
      mikkelewis on HN
  • Custom SearchModel with ActiveModel

    From 1 comment
    • Nice. I've built something very similar in my current app. In my app it's called `SearchModel` and descendants live within the `app/models` dir. I include some modules from…
      troels on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/6750244)