Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faster Profile #1080

Open
5 tasks done
wintermeyer opened this issue Oct 2, 2024 · 3 comments
Open
5 tasks done

Faster Profile #1080

wintermeyer opened this issue Oct 2, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request in progress Somebody is working on this issue
Milestone

Comments

@wintermeyer
Copy link
Collaborator

wintermeyer commented Oct 2, 2024

As a result of #1079 we create a new profile page on the green field. So the old code will be accessible at

https://animina.de/wintermeyer

and the new version at

https://animina.de/v2/wintermeyer

Feel free to create a new domain within the current code and all resources you need for this. We can even have these "fast" resources as read only resources. The resources can be super dumb if it helps. The underlaying data model must not change. But we don't need to carry around unused stuff from the old resources. The result should be a much faster page which only does a minimal amount of SQL queries.

Important

I expect all updates from all information on that page to be displayed right away. So if anonymous is browsing my profile and I change a story/photo/tag/whatnot I want that page to update right away. And I don't care if I make that change in the web GUI or with the iex. Same goes for all other visible profiles. Of course the same goes for non anonymous browsing users too.

PS: Don't forget to change the robots.txt so that search engines don't crawl the /v2/ directory yet.
PPS: The old profile takes about 131ms to just run the SQL queries on my laptop. My target for the new one would be 20ms or better. I don't see why we would need more time to fetch the needed data.

Tasks

@briankariuki
Copy link
Collaborator

@wintermeyer Kindly explain what you mean by "green field".

Also how will we name these modules to distinguish them from the ones existing currently?

@wintermeyer
Copy link
Collaborator Author

Green field in this context: Same app but different resources (if needed).

@wintermeyer
Copy link
Collaborator Author

Also how will we name these modules to distinguish them from the ones existing currently?

Figure it out. Add Fast oder Minima in front of them. Or go with totally new names.

@briankariuki briankariuki added the in progress Somebody is working on this issue label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in progress Somebody is working on this issue
Projects
None yet
Development

No branches or pull requests

2 participants