You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Piwik uses name column to find action IDs (segment's subquery to filter the data, e.g. when data is filtered using page URL or title). My suggestion is to use hash field to find the action ID. The case here is, that there's an index on this column (hash + type). Of course it will work only with "IS" segments.
The text was updated successfully, but these errors were encountered:
Here is an example query (please note: this one is using contains segment but there will be only a slightly different subquery for the is segment).
Id: 2311356
User: piwik
Host: localhost
db: piwik
Command: Query
Time: 2953
State: Copying to tmp table
Info: SELECT
count(distinct log_inner.idvisitor) AS `1`,
count(distinct log_inner.user_id) AS `39`
FROM
(
SELECT
log_visit.idvisitor,
log_visit.user_id
FROM
piwik_log_visit AS log_visit
LEFT JOIN piwik_log_link_visit_action AS log_link_visit_action ON log_link_visit_action.idvisit = log_visit.idvisit
WHERE
( log_visit.visit_last_action_time >= '2014-12-01 08:00:00'
AND log_visit.visit_last_action_time <= '2015-01-01 07:59:59'
AND log_visit.idsite IN ('1') )
AND
( (log_visit.visitor_returning = '1' OR log_visit.visitor_returning = '2') AND ( log_link_visit_action.idaction_url IN (SELECT idaction FROM piwik_log_action WHERE ( name LIKE CONCAT('%', '/myaccount', '%') AND type = 1 )) ) )
GROUP BY
log_visit.idvisit
ORDER BY
NULL
) AS log_inner
Currently Piwik uses
name
column to find action IDs (segment's subquery to filter the data, e.g. when data is filtered using page URL or title). My suggestion is to use hash field to find the action ID. The case here is, that there's an index on this column (hash
+type
). Of course it will work only with "IS" segments.The text was updated successfully, but these errors were encountered: