TandoorRecipes / recipes

Application for managing recipes, planning meals, building shopping lists and much much more!
https://docs.tandoor.dev
Other
5.17k stars 550 forks source link

num_recent parameter causes insane slowdown #3207

Open zunjae opened 2 weeks ago

zunjae commented 2 weeks ago

Tandoor Version

1.5.17

Setup

Docker / Docker-Compose

Reverse Proxy

No reverse proxy

Other

No response

Bug description

I've noticed that loading my home page that only contains 2 recipes takes 1.2 seconds. I would expect this API call to take ~20ms, maybe 100ms on a remote machine.

I have realised that loading the home page is significantly faster whenever I remove the num_recent parameter. I can do this on the page through the settings icon, but this only works on the device as its saved in the cookies.

Is there a way to completely remove this parameter on my instance of Tandoor?

Relevant logs

No response

vabene1111 commented 1 week ago

interesting, I have this parameter always turned on and never noticed a big issue. I will look into it but the new version does things differently anyway so maybe it wont be an issue anyway.