Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Using views with query vs table

(0) ShareShare
ReportReport
Posted on by 308

Hi,

Is there a difference in performace if I create a view with tables in it OR if I create a view with query?

So it's either view with table1 and table2

OR view with query (where query contains table1 and table2)

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Using views with query vs table

    Yes, I agree that its not related to performance and will not play any role - I am only saying the difference if you add the table directly to the view or adding query to the view.

    Thanks,

    Girish S.

  • Martin Dráb Profile Picture
    Martin Dráb 230,962 Most Valuable Professional on at
    RE: Using views with query vs table

    I don't think it plays a role - which fields will be selected is defined by view fields, not data source fields.

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Using views with query vs table

    Hi DELDYN,

    As martin mentioned there is no difference in performance.

    But if you create a view from the query - You can select the required(Dynamic) fields to be used and avoid unnecessary fields using Dynamic fields property at datasource level.

    If you directly add a table to the view - All the fields will be added to the datasource and you cannot set the Dynamic fields property for the datasource as it will be defaulted to Yes and you cannot change that..

    Thanks,

    Girish S.

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,962 Most Valuable Professional on at
    RE: Using views with query vs table

    No, it doesn't matter, as long as you build the same query. If so, the physically view in database will be identifical and therefore performance will be identical too.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans