Performance Problem

Created on 23 February 2022, about 3 years ago
Updated 2 March 2022, about 3 years ago

Hi!

We have a site with 15863 votes and only one tag.
We config "Bayesian" with "Average vote count" and "Standard deviation".
We need inmediatly results and we try "Tally results whenever a vote is cast"
In this scenario, it take about 2 minutes to end the process.
Is this normal?

If we setup with cron, we have to lunch every 5 minutes, and this carries other problems:
- Results are always out of the reality.
- Impacts server/s performance.

Anyone have test this with a lot of votes?

Regards,
Jordi
JOINSO

πŸ› Bug report
Status

Active

Version

1.4

Component

Miscellaneous

Created by

πŸ‡ͺπŸ‡ΈSpain JOINSO Sabadell

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States torgosPizza Portland, OR

    The issue appears to be the function _votingapi_bayesian_regenerate() in votingapi_bayesian.helpers.inc. That function performs a recalculation of every vote cast on every entity and stores the results in the cache; however, this is a duplication of effort because the core Voting API module already does this in hook_votingapi_results(). I can write a quick patch that just removes this function so that myself and others can use it.

Production build 0.71.5 2024