MiStats & #8212 is a TV and video viewing statistics module integrated with Smarty. Its main component — is Clickhouse database, which allows optimally in terms of speed and performance to collect, store and perform calculations with a large amount of data.

The MiStats architecture was designed to:
- statistical calculations did not affect the performance of the main functionality of Smarty — Smarty and MiStats instances are isolated and interact only via API;
- tV viewing data previously stored in MongoDB was seamlessly transferred to Clickhouse without loss;
- in addition to data from Smarty, MiStats is able to receive and use data from other systems.
Starting with the version of Smarty 2.0, all calculations for graphs from the section «Statistics» are carried out by MiStats.

Also, with the help of this module, the collection and sorting commands described in the section work statistics.
In the release of MiStats 2.0 (and the release of Smarty 2.12), a video statistics module and a proprietary admin MiStats appeared.


The new admin contains:
- ratings and schedules on TV channels and TV programs that were already in the Smarty admin;
- ratings and graphics by video viewing — with filters by genre, provider and type of content (ordinary video library and video library from archival records)
- metrics of specific films and series — number of inclusions per period, total duration of viewing and number of full inspections until the end
- file uploads for each type of schedule
- review widgets by popularity of genres, categories, films, channels and programs, as well as distribution of views by geo, content type and source.
Inside Smarty also appeared a tool for forming selections of popular films and TV series based on data from MiStats with the help of the team create video election by popularity.
