Skip to content

[Question] How would you deal with scaling model size? #2

@garsdle

Description

@garsdle

First of all I absolutely love your blog so thank you for that!

I was wondering if you had any thoughts about how to deal with your Model growing to something really large?

The main problems I see are:

  1. A lot of code / responsibility in one file
  2. Views will update when any of the properties in the model changes

I have an app that maintains a lot of state that needs to be kept in sync with our server and my version of Model has 500+ lines of code which seems... problematic? I've been trying to break it into several models but that comes with it's own series of problems.

Anyways I'm curious what you think and appreciate any feedback.

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions