Finding the size of ActiveRecord objects


#1

Hi all,

Is there a way to find the size of an ActiveRecord object on the disk?
The idea is that a user has a certain amount of disk space allocated
to them and they can create various objects until they run out of
space. Is this possible?

Many thanks,
Adam


#2

On Nov 28, 10:56 am, Adam removed_email_address@domain.invalid wrote:

Hi all,

Is there a way to find the size of an ActiveRecord object on the disk?
The idea is that a user has a certain amount of disk space allocated
to them and they can create various objects until they run out of
space. Is this possible?

Sounds like a lot of this will depend on how the database stores the
rows (eg how long are numerical columns etc…, are rows packed
etc…)

Fred