Scenic
Searchkick
Our great sponsors
Scenic | Searchkick | |
---|---|---|
8 | 10 | |
3,338 | 6,389 | |
1.0% | - | |
4.1 | 7.3 | |
18 days ago | 17 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Scenic
-
Database Views & Rails Active Record: defining new Model classes out of views
To model our Deliverable class, we will need a view. We will use the popular scenic gem, which provides some useful generators for creating views with their respective migrations, and utilities to handle views versioning.
-
Materialised views for serious performance gains
+1 for scenic - https://github.com/scenic-views/scenic
-
Most performant way to build an analytics dashboard from a relational database backend that only stores numeric values, where the data the end-user sees is "categorized" into numeric brackets (e.g. 60-79 = Med, 80-100 = High, etc)
If the data doesn't need to be close to real-time, and if your DB can handle a bit of load, I'd use a "batch" approach. To do this, I'd create a materialized view in your relational DB that you'd then refresh periodically. The easiest way to do this is with the `scenic` gem. Once you've done this, you can simply create a new model and set the `table_name` to the name of the materialized view, and then treat it as a regular model.
- Utilizando views SQL no Ruby on Rails
-
Frameworks for SQL Development in Rails?
I use the scenic gem to manage views which uses raw sql files: https://github.com/scenic-views/scenic
-
Rails application boilerplate for fast MVP development
add scenic
-
Logidze 1.0, postgres-specific alternative to eg paper_trail for recording ActiveRecord change history
TIL about fx gem for storing triggers in schema.rb. That makes me so happy because scenic gem for creating database views is one of my favorites. Postgres is very powerful and it's great to see tools for exposing that through Rails.
Searchkick
- Searchkick: Intelligent Search Made Easy
-
Most performant way to build an analytics dashboard from a relational database backend that only stores numeric values, where the data the end-user sees is "categorized" into numeric brackets (e.g. 60-79 = Med, 80-100 = High, etc)
I run a large scale production application that does something along these lines. If the data needs to be close to real-time, I'd say use `searchkick` + Elasticsearch, and use `searchkick`'s async feature to "stream" the data from your table to the ES index. Your dashboard will then just query from the ES index via searchkick.
-
Postgres Full Text Search vs. the Rest
You're right, that's actually what we implemented, application-level hooks, but they needed development and maintenance effort that come for free with the adapter we're using for OpenSearch integration, which also comes with welcome features: synonyms, partial matches, and many others.
Spoiler, the adapter is Searchkick: https://github.com/ankane/searchkick
-
Full-text Search with Elasticsearch in Rails
Searchkick
-
How does elasticsearch work with a rails app that's already connected to a MySQL database.
Normally for Rails applications you would use a gem like searchkick since it greatly reduces the initial Elasticsearch complexity.
-
Building a Workflow for Async Searchkick Reindexing
We lean heavily on Elasticsearch at CompanyCam. One of it's primary use cases is serving our highly filterable project feed. It is incredibly fast, even when you apply multiple filters to your query and are searching a largish data set. Our primary interface for interacting with Elasticsearch is using the Searchkick gem. Searchkick is a powerhouse and provides so many features out of the box. One place where we bump up against the edges is when trying to reindex a large collection.
-
Swapping Elasticsearch for Meilisearch in Rails feat. Docker
Convinced? Ok read on and I’ll show you what switching from Elasticsearch to Meilisearch looked like for a real production app — ScribeHub. We also moved from Ankane’s excellent Searchkick gem to the first party meilisearch-rails gem and I’ll show you the changes there as well.
-
Searching/Querying with Active Record Encryption
If you want to use a look-aside pattern (like you might have used with Searchkick + Elasticsearch), you should check out ActiveStash: https://github.com/cipherstash/activestash
- Full Text Searching in a MySQL database via rails.
-
ransack VS Searchkick - a user suggested alternative
2 projects | 12 Aug 2021
Searchkick learns what your users are looking for. As more people search, it gets smarter and the results get better. It’s friendly for developers - and magical for your users. BONUS: it's written and supported by "ankane" who has flawless reputation amongst the Ruby community.
What are some alternatives?
Lol DBA - lol_dba is a small package of rake tasks that scan your application models and displays a list of columns that probably should be indexed. Also, it can generate .sql migration scripts.
chewy - High-level Elasticsearch Ruby framework based on the official elasticsearch-ruby client
PgHero - A performance dashboard for Postgres
Elasticsearch Rails - Elasticsearch integrations for ActiveModel/Record and Ruby on Rails
SecondBase - Seamless second database integration for Rails.
ransack - Object-based searching.
Polo - Polo travels through your database and creates sample snapshots so you can work with real world data in development.
pg_search - pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
SchemaPlus - SchemaPlus provides a collection of enhancements and extensions to ActiveRecord
Sunspot - Solr-powered search for Ruby objects
Ruby PG Extras - Ruby PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more.
elasticsearch-ruby - Ruby integrations for Elasticsearch