I've got a list of 700+ items that im querying and getting the latest N results back, but as this list grows, it's getting slower and slower which is cauing me many issues.
I read about using pure examine for this but have been struggling to wrap my head around how it works. Would anyone be able to help me out and turn my query into an examine query?
This is for the chat functionality within a Game I've been building. basically gets the latest chat items that are either for the recipient, or have no recipient(for everyone).
Maybe you can change something id document structure? For example, why do you need extra logic to check when getting nodes without recipient? Maybe you can store these nodes in some other place and then remove this logic.
Examine is great for speeding up the performance, but if you can re-create a structure that it will be easier to access - this is the best.
Querying Umbraco too slow
Hi,
I've got a list of 700+ items that im querying and getting the latest N results back, but as this list grows, it's getting slower and slower which is cauing me many issues. I read about using pure examine for this but have been struggling to wrap my head around how it works. Would anyone be able to help me out and turn my query into an examine query?
This is for the chat functionality within a Game I've been building. basically gets the latest chat items that are either for the recipient, or have no recipient(for everyone).
Any help is appreciated, thanks!
Hi Dave
Maybe you can change something id document structure? For example, why do you need extra logic to check when getting nodes without recipient? Maybe you can store these nodes in some other place and then remove this logic.
Examine is great for speeding up the performance, but if you can re-create a structure that it will be easier to access - this is the best.
Thanks,
Alex
Let us know how did you solve the issue.
Hi Dave,
I don't think and wouldn't recommend to store something like chat messages in the tree. I would store it in a custom table or elsewhere.
Regards David
I originally got the idea from this article.
https://skrift.io/articles/archive/testing-the-performance-of-querying-umbraco/
What I wrote was:
The result was a huge difference. It went from 2,200ms load (and growing), to a 35ms consistent load time.
is working on a reply...