I have a query which works well in sql server 2014 filetables , after sql server 2017 upgrade it performs worse.
Query Prototype:
select cached_file_size from filetable where streamid='88656899'
Union
Select cached_file_size from filetablehistory where streamid='88656899'
Below Observations working fine:
1.
select cached_file_size from filetable where streamid='88656899'
Union all
Select cached_file_size from filetablehistory where streamid='88656899'
2.
select cached_file_size from filetable where streamid='88656899'
3.
Select cached_file_size from filetablehistory where streamid='88656899'
4. There are no locks held on those tables.
Please help!!