Connection Only or Load as Table and queries
Hello
I have a file: File A
This File A is a connection to File B.
File B consolidates many files in a folder.
In File A, for developing queries, is "load as table" better or "Connection Only"?
I am worried there is a difference between "loading as a table" and Connection Only in regards to data refreshing.
I noticed that in File A if I right clicked the loaded table on the sheet it didnt seem to refresh the data. Or maybe I did something wrong or didnt wait long enough for the data to refresh. I would think a "Connection" or "Load as a Table" shouldnt matter if running queries. I am not sure if you have a connection or load as a table then in both cases you need to refresh the data in the source (File B in my case).
thank you
- Anonymous4 years ago
That's correct. Once you are all loaded and the editor is closed, it's only the Connection Queries that cannot be refreshed.
--Nate
- Anonymous4 years ago
It's does refresh, but only when you refresh the table that loads from the connection file, and only for what is needed for that file. If you have a connection file with no filters, and then three files that reference the connection file but then filter by region, when your files are loaded, and then you refresh only the West Region, the connection file (assuming query folding) query plan will filter to the West Region, and never bother with bringing in the other regions. Or if your West query only needs two columns, the connection query will select only those two columns.
Try adding an unfiltered connection only file, then add some reference files that remove columns, filter dates, etc, and if they fold, look at the native SQL. You'll see what I mean.
--Nate