Forum Discussion

Centaur's avatar
Centaur
Helper V
4 years ago
Solved

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 ...
  • Anonymous's avatar
    Anonymous
    4 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

  • Anonymous's avatar
    Anonymous
    4 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