Comments (3)
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:
-
Initial Algolia query should return 30-50 responses, not 15. Loading more is annoying, there are lots now.
-
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.
-
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.
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.
from guesstimate-app.
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).
from guesstimate-app.
Related Issues (20)
- [FR] Clearer indication that a user's session has expired
- Update to @auth0/auth0-react HOT 1
- Switch from JWT to httponly cookies HOT 1
- Metric reasoning tooltip doesn't show up until the page is reloaded
- Can't make model public when shareable link is enabled HOT 2
- MetricModal doesn't get focus on first render
- Replace DraftJS HOT 1
- [FR] Manifold Markets integration HOT 1
- User Account Page Won't Open HOT 3
- Implement refresh tokens HOT 1
- Typescript strict=true
- Replace Redux with React contexts
- Use new Next 14 app router
- Fix shift+tab and shift+enter
- Yarn -> pnpm
- Remove recorder code
- Get rid of magic constants in code
- Sensitivity analysis varies depending on on ordering of sample
- Work disappeared and replaced by another model HOT 1
- Error copying models
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guesstimate-app.