I've identified & fixed the bug which caused this for the next version. It was the last step of the importer messing upThe Reaction Score is still just showing the number of Likes though so something else must need rebuilding.
Do you have any plans to add the criteria based on nodes? Like user has recieved at least X likes in node Y? I've this idea for a long time now
Ah, There would be a missing an index;Any idea why reaction counts rebuild quickly but the given reaction counts is so slow? Is that a bug?
alter table xf_reaction_content add index reaction_user_id_reaction_date ('reaction_user_id','reaction_date');
Not currently planned, there really isn't any sane place to stick per-node reaction totals at the moment without more work.Do you have any plans to add the criteria based on nodes? Like user has recieved at least X likes in node Y? I've this idea for a long time now
Ah, There would be a missing an index;
SQL:alter table xf_reaction_content add index reaction_user_id_reaction_date ('reaction_user_id','reaction_date');
The rebuild task looks to have had logic to add the index but it is disabled. Will fix that for the next version.
Rebuilding... User given reaction counts (11558)
In AbstractStatement.php line 217:
MySQL query error [1213]: Deadlock found when trying to get lock; try restarting transaction
xf-rebuild:svcr-user-given-counts [--log-queries LOG-QUERIES] [-b|--batch BATCH] [--reaction_id REACTION_ID]
Exception query:
UPDATE xf_user SET sv_sent_reactions = ? WHERE user_id = ?
Hmm, I don't think my stuff rebuilds the user's reaction score let me look into that.Reaction Score is still just the number of Likes though and is ignoring all the other reactions :-(
Yup, thanks for catching that. Updated the FAQAh that was ' vs ` I assume
- Fix importer; Correctly extract Post Reaction rating names when displaying post ratings to map to existing reactions
- Fix importer; Ensure reaction scores are imported from Post Rating category information
- Fix rebuilding user given/received counts could result in reducing reaction counts
- Ensure given reaction index on xf_reaction_content exists if the rebuild job is triggered (happens automatically on importing)
- When rebuilding received reaction counts, also rebuild the...
Upgrading Content Ratings For XF2.1+ from 2.0.5 to 2.0.6...
Confirm upgrade? (y/n)y
Upgrading
Complete.
Importing add-on data
Importing... Add-on data (Class extensions)
Importing... Add-on data (Code events)
Importing... Add-on data (Code event listeners)
Importing... Add-on data (Content type fields)
Importing... Add-on data (Options)
Importing... Add-on data (Option groups)
Importing... Add-on data (Permissions)
Importing... Add-on data (Phrases)
Importing... Add-on data (Routes)
Importing... Add-on data (Style properties)
Importing... Add-on data (Style property groups)
In Local.php line 200:
[ErrorException]
[E_WARNING] file_put_contents(/home/sites/public_html/
internal_data/code_cache/templates/l1/s0/admin/sv_contentratings_reaction_c
ategory_delete.php): failed to open stream: Permission denied
xf:addon-sub-action [--k K] [--] <id> <action>
Running clean up tasks...
In Entity.php line 575:
[LogicException]
Attempted to set 'type' while a save was pending without forceSet
We use essential cookies to make this site work, and optional cookies to enhance your experience.