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

Ohm::Timestamps - use c_at and u_at #44

Open
dmitrypol opened this issue Oct 9, 2016 · 1 comment
Open

Ohm::Timestamps - use c_at and u_at #44

dmitrypol opened this issue Oct 9, 2016 · 1 comment

Comments

@dmitrypol
Copy link

I have used Redis for years but just getting started with Ohm. I like the timestamps in ohm-contrib but using created_at and updated_at uses up more RAM.

In Mongoid there is a Mongoid::Timestamps::Short which creates c_at and u_at saving disk space. But in your Ruby code you can access either by the long alias created_at or by the short name.
http://www.rubydoc.info/github/mongoid/mongoid/Mongoid/Timestamps/Short

Has anyone tried to implement such feature in ohm-contrib?

@cyx
Copy link
Owner

cyx commented Oct 9, 2016

If you mean just simply changing the attributes to be shorter, no one yet has tried to implement it. It would be trivial but I doubt you'd get a lot of mileage from it TBH.

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

2 participants