Stream is the heaviest request in Espo. For example original.txt
Optimization suggestions:
1. In the first 4 union parts remove USE INDEX (`UNIQ_NUMBER`)
2. In other 4 unions add use index (`related`, parent)
it's about 10* times faster. ( 29s against 4m 33s) in my case
Optimization suggestions:
1. In the first 4 union parts remove USE INDEX (`UNIQ_NUMBER`)
2. In other 4 unions add use index (`related`, parent)
it's about 10* times faster. ( 29s against 4m 33s) in my case
Comment