Jump to content

View Count Zero (0, Incorrect)


iacas

Recommended Posts

Posted

I have the same problem, this will be corrected in the next update that will be launched very soon (words from the support) :thumbsup:

edit: Ah, and the views aren't lost, after the patch it will show the correct views.

Posted
4 hours ago, FabioPaz said:

I have the same problem, this will be corrected in the next update that will be launched very soon (words from the support) :thumbsup:

edit: Ah, and the views aren't lost, after the patch it will show the correct views.

Thanks. In 4.1.5?

  • 1 month later...
Posted

Go to System>Advanced Configuration and click on the "View Tasks" link. Then find the "viewupdates" task and run it (play button). If after you do that your views are now back to normal, it means you haven't configured your cron tasks to run properly.

Posted

Weird, I have views o'plenty but  some topics show 0 replies where there are many. Have forced several likely looking tasks to run (as above) but reply count does not update).

Posted

i had this same feeling, saw the code, checked table rows and started the task again:

explain SELECT classname, id, COUNT(*) AS count FROM `gacore_view_updates` AS `core_view_updates` GROUP BY `classname`,`id` LIMIT 20;
+------+-------------+-------------------+------+---------------+------+---------+------+---------+---------------------------------+
| id   | select_type | table             | type | possible_keys | key  | key_len | ref  | rows    | Extra                           |
+------+-------------+-------------------+------+---------------+------+---------+------+---------+---------------------------------+
|    1 | SIMPLE      | core_view_updates | ALL  | NULL          | NULL | NULL    | NULL | 1249247 | Using temporary; Using filesort |
+------+-------------+-------------------+------+---------------+------+---------+------+---------+---------------------------------+
1 row in set (0.00 sec)

 

actually it take its time without explain (6.5secs on a SSD)

the row count decreased at least...now, what index can i make to speed this!?

Posted

Fixed that fuc***

the index had a size smaller than colum size, and mysql docs say:

For columns in the index, full column values must be indexed, not just a prefix. For example, with c1 VARCHAR(20), INDEX (c1(10)), the index cannot be used for loose index scan.

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...