How to find the size of single row i entered int crate DB. Below is my schema.
Schema
Name Type
name1 TEXT
name2 TEXT
name3 TEXT
reading1 DOUBLE
reading2 DOUBLE
When i enter a value like
(
“abcdefg”
“lmnopk”
“aksjuiopuuu”
1231231231,
1314124214
)
How to know the each text consumed bytes (size ) and entire row size in crate db ???
How to know the each text consumed bytes (size ) and entire row size in crate db ???
I’d say this isn’t really possible with CrateDB.
May I ask what you want to achieve?
The sys.shards table has the information for how much disk space is actually used for a shard. Keep in mind that this might go down, with new lucene segments being created.
you can calculated an average required disk size like this:
SELECT
schema_name,
table_name,
SUM(num_docs),
SUM(size),
SUM(size) / SUM(num_docs)::DOUBLE as avg_size_in_bytes
FROM sys.shards
where PRIMARY
GROUP BY 1,2