web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Model creation best practices

(0) ShareShare
ReportReport
Posted on by 5

Hello friends!!

Does anyone have a Microsoft document about model creation best practices? Today I know that the compiler is optimized to work with large models, and it reflects on compilation and packaging time, but I didn't find an official Microsoft document telling us that. If you have, please share with me! Thank you very much!

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Model creation best practices

    If you're talking about CUS development, I would say that usually you should have one package with one model. Just because of simplicity, not so much because of compilation time. You should create many models only if you have reasons to do so.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    299,576 Super User 2025 Season 2 on at
    RE: Model creation best practices

    Hi Anaga,

    There is no document from Microsoft about the size of a model. For deployments to the UAT or production, you need an one in all deployable package containing all models. So, having multiple models for customizations doesn't make sense.

    As an ISV, we are using separate models for componentizing our solutions. E.g. we have one solution Connectivity Studio, another solution Data Quality Studio. Logically, these are separate models as customers can buy them individually. We have a another model which is having the integration objects between these solutions (execute data validation rules before import data in target tables). This model is only applicable if both solutions are installed.

    Some customers and partners thought to create a model per feature with the idea to separate functionality. This is for sure not required and will make things more cumbersome to maintain at the end. With one model and using DevOps with multiple branches, you can also manage which customizations will be part of a deployable package and which ones needs to wait for development completion.

  • Anaga Profile Picture
    5 on at
    RE: Model creation best practices

    Nikaloas, thanks for your answer!

    Here we have an untipical scenario, with at least 200 models, and to compile and build the time that it takes normaly is 3 hours and 30 minutes. On another companies that we have contact, the time to compile and packing is in the maximum 20 minutes, there packing step takes just 1 minute , and here it takes 1 hour and 20 minutes! Looking at build and compile execution log, I realize that between the models, the process takes some seconds to start model compilation and packing too. If we multiple these additional seconds by 200 we gonna have a lot of time more to finish the process.

    Another issue that we have, with these models beeing created on the root folder, is the dificult to use Microsoft Hosted Agent Build, because it needs a solution with one project per model.

    The point is that today we suffer with bad decisions about model creations, then I would like to have a Microsoft document that would tell us the best practices.

  • André Arnaud de Calavon Profile Picture
    299,576 Super User 2025 Season 2 on at
    RE: Model creation best practices

    Hi Anaga,

    As mentioned, there is not a document I'm aware of. 200 models is insane, for sure. If you want to get a confirmation or best practice, you may contact Microsoft Support.

    However, as you are suffering today... why not reducing the number of models directly? Do you really need a document from Microsoft to tell you that 200 models is not best practice?

  • Anaga Profile Picture
    5 on at
    RE: Model creation best practices

    Hello Andre,

    I don't but third party partners would ask some documentation to recognize that It's not a best practice. Thanks for your answer! =)

  • Verified answer
    Joris dG Profile Picture
    17,775 on at
    RE: Model creation best practices

    We're aware of an issue with packaging taking super long. We had a fix for it but needed to roll it back due to another issue.

    As far as the number of models, for the most part you're just taking on overhead all over the place. From a development point of view, your code is bound to become spaghetti code. I've seen some customers create a new model for each customization they do. I'm unclear if we should cry or laugh about it, but clearly that is ridiculous.

    It's very annoying when people ask for Microsoft best practices for stuff like this. It's unclear to me what happened to common sense and normal software engineering practices - people should start there.

    If you were developing in any other language/platform, would you create 200 DLLs, one for each customization? There's your answer.

  • Anaga Profile Picture
    5 on at
    RE: Model creation best practices

    Hello Joris,

    Thanks for you answer.

    I don't see any problem about Microsoft make a documentation about it, even because these documentations could help customers (that aren't software enginners) to talk with partners about things that they would like to be applyed on implementation projects.

    Just to clarify, I know and recommend to my custormers to use one large model, I just would like to know if any documentation about that exists. Please don't have a heart attack because of that hahahaha

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 813

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 738 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 566 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans