Determining size of a row in bytes

I have a small but essential requirement that is making me seriously consider a shift away from MySQL and I am wondering if MariaDB is a viable alternative.

I need to measure the size of a row in bytes (easily).

Specifically, a table consists of rows belonging to several users. I need to know how much disk space is consumed by each of those users.

The only solution I can find in MySQL documentation/forums are inefficient and inaccurate approximations.

Does MariaDB provide some way of doing this easily? I have to do it on multiple tables which will probably change, so I don't want to build maintenance overheads in. Also obviously I don't want too much of a performance hit.

Answer Answered by Ian Gilfillan in this comment.

MariaDB doesn't to my knowledge have any way of doing this that's not available in MySQL.

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.