0

Partial Model Update in IMDB

Suppose I have a single IMDB model, which feeds of different sources.

These sources may not be available in the same time, or may not update in the same time.

Right now, if I update a model, I have to do it using a specific model file.

It would be great if we could have the ability to only update some IMDB tables every time, and keep the others as they were.

 

Thank you

7 replies

null
    • Senior Director of Product
    • Ian_Macdonald
    • 4 yrs ago
    • Reported - view

    Hi Mosche,

    You can do this today using Master Flows.

    This allows you to test conditions and run particular data flows depending on the outcome.

    Check out the Office Hours recordings, there is at least one that covers this topic.

    Hope that helps.

    Ian

      • Customer Solutions Architect
      • Moshe_Yossef
      • 4 yrs ago
      • Reported - view

      Ian Macdonald How will the master flow help?

      It can't do any of the things I need:

      1) 2 different dat flows in the same master flow cannot update the *same* IMDB model.

      2) You can't run a a specific data flow from a master flow - you have to run them both together - which means my data sources will always be out of sync.

      • Customer Solutions Architect
      • Moshe_Yossef
      • 4 yrs ago
      • Reported - view

      Moshe Yossef OK, maybe I got it.
      If I have a master flow, it can load two different IMDB models, using a conditional on which of them should be loaded, and then add a third step calculating an IMDB from the first two - is this the basic direction?

    • Senior Director of Product
    • Ian_Macdonald
    • 4 yrs ago
    • Reported - view

    Hi Moshe,

    Yes. 

    In your master flow, you create multiple data flows, each of which loads from different source. You then run none, one or more if them based on a variable value or other test set depending on if they exist etc.

    Each data flow updates the same IMDB database, handling perhaps different tables.

    You then create a Direct Query model into the same database that is the final model used by your users etc.

    Remember that a Model is a description (optionally with data flows) or view of a database. Multiple models can point to the same physical database, IMDB or other SQL database.

    Hope that helps.

    Ian

    • Customer Solutions Architect
    • Moshe_Yossef
    • 4 yrs ago
    • Reported - view
    Ian Macdonald said:
    Each data flow updates the same IMDB database, handling perhaps different tables.

    Is this possible? when I tried, the model didn't include tables from more than one data flow.

    Anyway I think the direction is clear, thank you very much.

      • Senior Director of Product
      • Ian_Macdonald
      • 4 yrs ago
      • Reported - view

      Each Data Flow in the Master flow will have its corresponding Model (make sure you add the "Model" block to that data flow in the Master flow so that when you double click it, it can be edited in the Model tab - it's a bit confusing I know!) that will only contain the tables you want to manage in that flow. Each flow will therefore only update the tables contained in that flow's respective model. Taken together though, the combined flows will handle all tables in the database, but each flow will refer to a model that only contains the tables managed in that flow.

      You now have (in your case) an IMDB database with all the tables required for your data set. 

      Create a new Model choosing IMDB as the data source and select the IMDB database managed by the flows in your master flow. Select all the tables and check the Direct Query check box.

      Move onto the Model tab, define the table relationships required, aggregation rules, hierarchies etc. and save. 

      You now have a Model which addresses all your tables and can be used as the Model to query and analyse your data, while the orchestrated flows in your Master Flow model manages the data update.

      Hope that helps.

      Ian

      • Customer Solutions Architect
      • Moshe_Yossef
      • 4 yrs ago
      • Reported - view

      Ian Macdonald That's terrific!
      Thank you very much for the detailed answer. ❤️

Content aside

  • Status Answered
  • 4 yrs agoLast active
  • 7Replies
  • 53Views
  • 2 Following