Service health
Sample dataThe database: is the main copy up, how full are its connections, how big is each database and which statements take the most time.
Main databaseUpPostgreSQL 16.4
Connections74 of 20037% used. 0 clients waiting. An alert at 80%.
Found in memory99.3%Reads served from memory, not disk
Oldest open transaction3 minAn alert at 30 minutes
Not set up yet: comes with production
These protect the data against losing a machine. With one machine they cannot exist yet, so the page does not call them failures.
Standby copy (the live copy on a second machine)It needs the second machine.
Not set up yet
Off-site backups (pgBackRest to a second provider)It needs the monitoring machine and a second provider.
Not set up yet
Database connection shield for the app machineIt needs the app machine.
Not set up yet
What protects the data todayNightly dump of the small databases, kept on this machine only. Last ran . Write-ahead log: Archived to a local folder every 5 minutes.
Size of each database
302.2 GB in all.
| Database | Size |
|---|---|
Prices, filings and raw feedsmarketdata | |
Scores, valuations, strategy books, thesesresearch | |
Accounts, billing, noticesplatform | |
Usage events (monthly partitions)analytics | |
Sign-inidentity | |
Settings, schedules, auditcontrol |
Prices, filings and raw feeds212.4 GB
marketdataScores, valuations, strategy books, theses84.2 GB
researchAccounts, billing, notices3.1 GB
platformUsage events (monthly partitions)1.9 GB
analyticsSign-in0.4 GB
identitySettings, schedules, audit0.2 GB
controlSlowest statements
The 10 that took the most time in total today, from the database's own statistics.
| Statement | Calls | Total time |
|---|---|---|
| Daily bars: read a company's history for a chart | 184,200 | 884 s |
| Valuation marks: upsert the day's marks | 25,150 | 785 s |
| Raw feed archive: insert a downloaded file's rows | 9,120 | 651 s |
| Evidence score: read the inputs of one company | 12,100 | 519 s |
| Event outbox: read the next batch for a reader | 4,120,000 | 412 s |
| Company page: join score, fair value and zone | 96,400 | 376 s |
| Insider forms: insert a parsed Form 4 | 31,800 | 312 s |
| Run log: insert and update a job run | 88,200 | 238 s |
| Strategy book: write a day's ranked rows | 1,520 | 213 s |
| Usage events: insert a batch | 6,200 | 137 s |
Daily bars: read a company's history for a chart
Valuation marks: upsert the day's marks
Raw feed archive: insert a downloaded file's rows
Evidence score: read the inputs of one company
Event outbox: read the next batch for a reader
Company page: join score, fair value and zone
Insider forms: insert a parsed Form 4
Run log: insert and update a job run
Strategy book: write a day's ranked rows
Usage events: insert a batch