store_attribute
ActiveRecord extension which adds typecasting to store accessors (by palkan)
acts_as_nosql
Allows to treat JSON fields of postgres and mysql as real fields (by monade)
store_attribute | acts_as_nosql | |
---|---|---|
2 | 2 | |
354 | 35 | |
- | - | |
5.4 | 5.2 | |
2 months ago | 4 months ago | |
Ruby | Ruby | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
store_attribute
Posts with mentions or reviews of store_attribute.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-08.
-
Is JSONB + Postgres still a viable way of storing varying attributes?
There are some other gems that can do similar things (each with somewhat different design and possibilities) including https://github.com/madeintandem/jsonb_accessor , https://github.com/DmitryTsepelev/store_model , and https://github.com/palkan/store_attribute
-
Just released acts_as_nosql, a gem to manage JSON fields as proper database fields
There is a store_accessor extension which adds types and works similar to Rails' attribute: https://github.com/palkan/store_attribute
acts_as_nosql
Posts with mentions or reviews of acts_as_nosql.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-09.
-
Just released acts_as_nosql, a gem to manage JSON fields as proper database fields
In CI, I hadn't yet time to make run the tests on all combination of DB engines / SO / ruby versions, since I had trouble to make SQLite work properly on latest version with Github Actions. At the moment, PostgreSQL is tested on ubuntu, SQLite is tested on macOS. https://github.com/monade/acts_as_nosql/blob/master/.github/workflows/test.yml
What are some alternatives?
When comparing store_attribute and acts_as_nosql you can also consider the following projects:
StoreModel - Work with JSON-backed attributes as ActiveRecord-ish models
pluck_in_batches - A faster alternative to the custom use of `in_batches` with `pluck`
fuzzily - Fast fuzzy string searching/matching for Rails