?
Nope. Hints are an Oracle invention to trick their stupid optimiser. Analyze (EXPLAIN ANALYZE) your queries, find missing indexes, remove unused indexes. Use the right index type etc.
Hmm, after put index then also not working, still take more time
It depends on what you are doing just adding more indexes is wrong in most cases. If it's a big table, an index will be big. In that case a BRIN index might help as it is much smaller because it indexes ranges. Have you checked your execution plan? Do you understand what it is doing? There's no one solution that fixes anything.
Maybe you can share your EXPLAIN ANALYZE results with us on https://explain.depesz.com/
Обсуждают сегодня