# How do I model a schema such that I avoid using space

**URL:** <https://forum.scylladb.com/t/how-do-i-model-a-schema-such-that-i-avoid-using-space/1367>\
**Category:** University and Training\
**Tags:** data-model, open-source\
**Created:** [March 10, 2024, 12:26pm UTC](https://forum.scylladb.com/t/how-do-i-model-a-schema-such-that-i-avoid-using-space/1367 "2024-03-10T12:26:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bloodpriest](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/bloodpriest/32/347_2.png) [@Bloodpriest](https://forum.scylladb.com/u/Bloodpriest)\
**Post date:** [March 10, 2024, 12:26pm UTC](https://forum.scylladb.com/t/how-do-i-model-a-schema-such-that-i-avoid-using-space/1367/1 "2024-03-10T12:26:57Z")

</div>

Say if I have a message schema, & I need a field replyToMessageId which holds the id of the message to which this message instance is supposed to be a reply/comment of, then for multiple messages with this field being null, wont it waste bits used to represent null? Is null value stored? & how to model such data better?

---

<div class="post-metadata">

**Author:** ![Botond\_Denes](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.scylladb.com/botond_denes/32/163_2.png) [@Botond\_Denes](https://forum.scylladb.com/u/Botond_Denes)\
**Post date:** [March 12, 2024, 7:07am UTC](https://forum.scylladb.com/t/how-do-i-model-a-schema-such-that-i-avoid-using-space/1367/2 "2024-03-12T07:07:34Z")

</div>

In ScyllaDB, fields for which you don’t set a value, are simply not stored on disk. Note, that setting a field to `null` is different than not storing a value at all. A `null` field still takes some space (it is a cell tombstone).
