miktam / sizeof

Get size of a JavaScript object
MIT License
311 stars 45 forks source link

Does this work on Sequelize object? #10

Closed alexdrans closed 8 years ago

alexdrans commented 8 years ago

I was wondering whether it's feasible to store a whole Sequelize object in Redis, and came across this module. When I attempt to measure the size of a Sequelize object, a whole core is used up, but no result is returned and the program just hangs (processing).

Any ideas why this might be occurring?

miktam commented 8 years ago

@alexdrans, sequelize provides get() method which if used without any parameters returns all values of the instance. Could you please try to use it and see if it would help?

alexdrans commented 8 years ago

Thanks @miktam , that worked! :+1: