Quests icon indicating copy to clipboard operation
Quests copied to clipboard

optimize queries with placeholderapi

Open MisterGranti67 opened this issue 2 years ago • 1 comments

Description of Bug

Hello, would there be a way to optimize queries with placeholderapi? Because if I activate quests with placeholders on jobreborn, I take a 15 tps and 70 mspt for over 100 players.

If this is not available, would it be possible to update quickly enough to be able to set a refresh time for each placeholderapi request?

Thank you.

Steps to Reproduce

it is enough to put a jobs quest with all the jobs, then to have 100 players who how the quest, we lose a lot of tps.

Environment

  • Minecraft version: 1.18.2
  • Server software: PUFFERFISH
  • Quests version: Latest

Agreements

  • [X] I am running the latest version of Quests
  • [X] I am certain this issue is unique and a similar issue is not currently open
  • [X] I am using a version of Minecraft which is supported by Quests

Other

No response

MisterGranti67 avatar Jul 24 '22 18:07 MisterGranti67

Which placeholders exactly? Quests own placeholders allows you to cache them for any amount of time

LMBishop avatar Jul 30 '22 14:07 LMBishop

I guess that the Jobs placeholders aren't cached and doing database stuff on the main thread :kekw:

Krakenied avatar Aug 20 '22 19:08 Krakenied