Answer the question
In order to leave comments, you need to log in
How can I speed up the search in the Spring Data, Postgres database?
Hello! Now getting 5,10,100 pieces of data out of 1000000 takes about ~10sec. How can you speed up the search? What I did:
1. Added indexes
2. Made all OneToMany links lazy
3. I use Pagable (I read about Slice), but I need to show the number of elements.
Basically all ManyToOne relationships, will lazy help with unnecessary fields to show? And how to make manyToOne Lazy?
Thank you all in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question