I am querying data from a process historian that was stored using OPC. The querys run very slow. What table merging method should I expect to be faster and why when I query the data?
This:
and a1.TS >'15-MAR-18 07:00'
and a1.TS = a2.TS
and a2.TS = a3.TS
and a3.TS = a4.TS
and a4.TS = a5.TS
and a5.TS = a6.TS
and a6.TS = a7.TS
and a7.TS = a8.TS
and a8.TS = a9.TS
and a9.TS = a10.TS
and a10.TS = a11.TS
or this:
and a1.TS >'15-MAR-18 07:00'
and a1.TS = a2.TS
and a1.TS = a3.TS
and a1.TS = a4.TS
and a1.TS = a5.TS
and a1.TS = a6.TS
and a1.TS = a7.TS
and a1.TS = a8.TS
and a1.TS = a9.TS
and a1.TS = a10.TS
and a1.TS = a11.TS