Get Database Size
Get database size statistics broken down by table.
Example
Response Fields
Table Object
The orderbooks table typically accounts for the vast majority of database size due to the volume of historical snapshots stored.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Database size and system statistics
curl "http://api.poly-data.xyz/stats/db-size"
{
"database": "defaultdb",
"size_bytes": 5368709120,
"size_pretty": "5.00 GB",
"tables": [
{
"table": "orderbooks",
"size_bytes": 4294967296,
"size_pretty": "4.00 GB"
},
{
"table": "markets",
"size_bytes": 536870912,
"size_pretty": "512.00 MB"
},
{
"table": "events",
"size_bytes": 268435456,
"size_pretty": "256.00 MB"
},
{
"table": "outcomes",
"size_bytes": 134217728,
"size_pretty": "128.00 MB"
}
]
}
| Field | Type | Description |
|---|---|---|
database | string | Database name |
size_bytes | integer | Total database size in bytes |
size_pretty | string | Human-readable total size |
tables | array | Per-table size breakdown |
| Field | Type | Description |
|---|---|---|
table | string | Table name |
size_bytes | integer | Table size in bytes (including indexes) |
size_pretty | string | Human-readable table size |