Token Entity Types Performance

Created on 23 March 2022, about 3 years ago
Updated 10 August 2024, 8 months ago

Problem/Motivation

Currently the function _votingapi_tokens_get_entity_types() Uses a SELECT DISTINCT entity_type FROM {votingapi_vote} query to get entity types. There can be thousands of rows in this database table. Selecting the entity types in this fashion is not very performant.

Proposed resolution

Create a configuration form for the votingapi_token module and pull the entity types from the configuration instead of the database.

✨ Feature request
Status

Needs work

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States saltwaterskin

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

Merge Requests

Comments & Activities

Not all content is available!

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

Production build 0.71.5 2024