Giter Site home page Giter Site logo

Comments (3)

OAGr avatar OAGr commented on September 24, 2024

The great thing about loading in memory is that it makes everything really fast once things are loaded. The bad thing is that it takes forever to initially load. Progressive loading solutions can be tricky. Going to list data that needs to get loaded for different areas:

  1. Initial Algolia query should return 30-50 responses, not 15. Loading more is annoying, there are lots now.

  2. No server response should be necessary for page load. Just algolia. Right now we use Algolia to find the space IDs, then the in-memory store to show them, which is redundant as Algolia gives us the full entries.

  3. A space should obviously load /space/ID.

We can keep on loading all the users for now, that data is much more minimal.

In the absolute worst case, we could simply just load the space on the space page, and then load the spaces index without the graphs elsewhere. This is probably a decent first step, should be pretty easy.

from guesstimate-app.

OAGr avatar OAGr commented on September 24, 2024

This is my #1 priority at this point. Site is failing for a bunch of people, and may be down soon if we don't act quickly. Just a heads up.

image

from guesstimate-app.

OAGr avatar OAGr commented on September 24, 2024

Thanks to the PR above, this seems fixed.

Was very interesting (for me). Basically, it seems like Rails auto cached responses. As /users and /spaces were called (this loaded everything in them), long-term memory use would rise. The quick rise after the dip at around 10pm was me doing a small bit of load testing on these urls. I also upgraded the database and reduced the amount it auto saves (in a good way, it used to try after each key stroke in numeric input, making the entire app slower).

Still some more work here, but I think this isn't a bottleneck any more (for now).

image

from guesstimate-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.