Quantcast
Channel: Kaltura - Latest posts
Viewing all articles
Browse latest Browse all 7410

No analytics play counts - dwh_plays_views_sync error - Couldn't find entry

$
0
0

Hello,

So, let me explain a bit about this script and what it does:
First off, it's goal is to sync the 'plays' from the DWH DB into the operation DB, this affects the "Plays" field displayed in the KMC->Content tab but should not affect the data you see in the Analytics tab.

And so, if the issue is more than the plays in the content tab, take a look at:

Assuming the issue is ONLY with the plays in the content tab, the script calls a stored procedure defined here:
/opt/kaltura/dwh/ddl/dw/functions/get_data_for_operational.sql

It would run this code:
SELECT e.entry_id, e.plays, e.views
FROM dwh_entry_plays_views e, kalturadw_ds.parameters p
WHERE e.updated_at > p.date_value AND p.id = 4;

And then, for each such entry, an attempt to set the plays will be done by calling:
php $BASE_DIR/app/alpha/scripts/dwh/updateEntryPlaysViews.php

So, if somehow, you have 0_nh8lh82p in the DWH DB and not in Sphinx, it would fail. However, this should not interfere with doing the other entries.

Hope this helps,


Viewing all articles
Browse latest Browse all 7410

Trending Articles