# Table Limits - Row Size Clarity

**URL:** <https://www.singlestore.com/forum/t/table-limits-row-size-clarity/4786>\
**Category:** Query Tuning\
**Created:** [July 22, 2022, 9:55am UTC](https://www.singlestore.com/forum/t/table-limits-row-size-clarity/4786 "2022-07-22T09:55:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![subash](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@subash](https://www.singlestore.com/forum/u/subash)\
**Post date:** [July 22, 2022, 9:55am UTC](https://www.singlestore.com/forum/t/table-limits-row-size-clarity/4786/1 "2022-07-22T09:55:38Z")

</div>

On going through the below link I understand the row size can be max 64KB. But need clarity on the below:

- This limitation is considering all data types?

- Is the size limitation considering the compression?

[Table-Level Limits (singlestore.com)](https://docs.singlestore.com/db/v7.8/en/reference/configuration-reference/system-limits/table-level-limits.html)

---

<div class="post-metadata">

**Author:** ![hanson](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/hanson/32/196_2.png) [@hanson](https://www.singlestore.com/forum/u/hanson)\
**Post date:** [July 22, 2022, 11:49pm UTC](https://www.singlestore.com/forum/t/table-limits-row-size-clarity/4786/2 "2022-07-22T23:49:39Z")

</div>

This limitation does not apply to all data types:

“Limit does not apply to variable-length strings such as VARCHAR, VARBINARY, TEXT, etc.”

And it does not consider compression.

The limit is the total size of all fixed-width fields, plus some minimum amount for each variable-width field. I think it is 12 bytes for those, to hold a pointer to the data and a NULL indicator, but I’m not 100% sure. If you need an exact figure, I can try to get it for you.

---

<div class="post-metadata">

**Author:** ![subash](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/s/439d5e/32.png) [@subash](https://www.singlestore.com/forum/u/subash)\
**Post date:** [July 25, 2022, 4:17am UTC](https://www.singlestore.com/forum/t/table-limits-row-size-clarity/4786/3 "2022-07-25T04:17:50Z")

</div>

Hi Hanson, Thanks for the clarity. Yes, those exact figures will help us a lot.

---

<div class="post-metadata">

**Author:** ![hanson](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/hanson/32/196_2.png) [@hanson](https://www.singlestore.com/forum/u/hanson)\
**Post date:** [July 25, 2022, 10:47pm UTC](https://www.singlestore.com/forum/t/table-limits-row-size-clarity/4786/4 "2022-07-25T22:47:12Z")

</div>

If you look at our [data types documentation](https://docs.singlestore.com/managed-service/en/reference/sql-reference/data-types.html), it tells you the size of all the types. The in-row portion includes fixed-width data, and a 4-byte nullability flag for nullable fields. Fixed width data includes all the data for fixed-width char and binary. For off-row data (variable length strings, text, blobs) the in-row portion is 8 bytes for the pointer plus 4 bytes for an optional nullability flag. The sum of those for all the columns has to be at most 64KB.
