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 7735047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:24:08+00:00 2026-06-01T07:24:08+00:00

Given models User and Comments being populated such that a user may have many

  • 0

Given models User and Comments being populated such that a user may have many comments…I have a view in which I want each User model to be aware of its comments, for fast lookup. But I don’t necessarily need all of the features of Collection.

On the other hand, since I use Collections to store any kind of group of models, I would like to stick to using collections for consistency sake.

My question is: is there any kind of significant performance advantage in just keeping an array of Models, rather than a Collection of models even when said collection has no event bindings?

  • 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-01T07:24:10+00:00Added an answer on June 1, 2026 at 7:24 am

    Network wise no, you could be bringing down the exact same JSON anyway.

    CPU wise, I would say any performance advantage would be extremely minimal. When you load a collection it iterates through each item in the array, converts the element to a model, binds to all model events and adds it to the models property which is an array of models. You wouldn’t see any impact from this unless you had a very high number of total comments. Have a look at the source it’s very readable.

    Of course the only way to know the actual performance impact is to test it. It should be pretty easy to setup, you’d just need backbone.js, your User & Comments models/collections and JSON to load into the collections.

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

Sidebar

Related Questions

In the given case a User may: invite many invitees (has_many :invitations) accept one
Given the following models: User.rb NetworkDepartment.rb (id, title,added_by) belongs_to :user, :foreign_key => :added_by I
Given the Model: class Profile(models.Model): user = models.ForeignKey(User, unique=True) class Thingie(models.Model): children = models.ManyToManyField('self',
Given these two models: class Profile(models.Model): user = models.ForeignKey(User, unique=True, verbose_name=_('user')) about = models.TextField(_('about'),
Given a model structure like this: class Book(models.Model): user = models.ForeignKey(User) class Readingdate(models.Model): book
I have a partial view where I render, if the user has choosen an
When a new user is created they are given a password. I want to
Given this model: from django.db import models from django.contrib.auth.admin import User # Create your
I have a users_manager engine which has a User model class. In an other
Given the following two models: User (id) FbFriendCache(user_id,fb_user_id) I would like to be able

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.