-
- Downloads
fix: add downloads_count to episodes table, computed every hour
This removes computing latency when retrieving episodes list with download count in admin. The more analytics records, the more it took to calculate the sum of hits to get the downloads count for each episode.
Showing
- app/Commands/EpisodesComputeDownloads.php 50 additions, 0 deletionsapp/Commands/EpisodesComputeDownloads.php
- app/Config/Tasks.php 4 additions, 0 deletionsapp/Config/Tasks.php
- app/Database/Migrations/2024-05-29-100000_add_episode_download_count.php 29 additions, 0 deletions...grations/2024-05-29-100000_add_episode_download_count.php
- app/Entities/Episode.php 2 additions, 3 deletionsapp/Entities/Episode.php
- app/Models/EpisodeModel.php 1 addition, 0 deletionsapp/Models/EpisodeModel.php
- modules/Admin/Controllers/EpisodeController.php 4 additions, 13 deletionsmodules/Admin/Controllers/EpisodeController.php
- themes/cp_admin/episode/list.php 1 addition, 1 deletionthemes/cp_admin/episode/list.php
Loading
Please register or sign in to comment