Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7772239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:50:38+00:00 2026-06-01T16:50:38+00:00

In my web app, there are 5 different sections: Blog Display, Blog Entries list,

  • 0

In my web app, there are 5 different sections: Blog Display, Blog Entries list, Blog entry editor, blog editor, comments list on one page.

Some of these sections are displayed only when an action is trigged, such as clicking view comments link for a blog entry link should showed the comments list. Clicking edit blog entry link should display the blog entry editor.

In knockout js, is it better to have one big view or multiple views? (terms of performance and maintainability)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:50:39+00:00Added an answer on June 1, 2026 at 4:50 pm

    I think having multiple view models doesn’t affect performance in comparison to one fat model, but in terms of clean code and convinience i’d go OOP-way with one model.

    I mean the following:

    function SubModel1 () { ... }
    function SubModel2 () { ... }
    function SubModel3 () { ... }
    
    function MainModel () {
      this.subModel1 = new SubModel1();
      this.subModel2 = new SubModel2();
      this.subModel3 = new SubModel3();
    }
    

    All model specific logic is separated and you still can easily subscribe to each of observables between models in MainModel constructor.

    I’ve tried both approaches (separate models and one big model) and this one really helps to avoid complexification.

    Also, there are still tasks where i’d choose separate models. For example, UI widgets. It’s better to keep their models away from outside as they are self-contained

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is a ASP.NET MVC 2 web app, lets call it myapp.com. I want
I'm making a web app. In it there are times when a form may
I have a large web app, and I think there are a bunch of
I am creating a simple web app. There is a <video> element on the
I am building a rails3 web app. Is there a query like this in
If I run my web app in VisualStudio, and set cookies, they aren't there
I'm using QWebView to run a web app. There are 650+ files. Placing the
We're using a Ruby web-app with Redis server for caching. Is there a point
Do you know if there is any way to publish on my web app
There are two projects: 1) applet project that outputs jar file 2) web app

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.