Ohm::Timestamps - use c_at and u_at
Opened this issue · 1 comments
dmitrypol commented
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 commented
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.