Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

/admin/freshmen Times Out

Aperta
#261 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@VivianNK ci sta già lavorando.

Dal 2/4/2021.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug good first issue performance

The /admin/freshmen route times out when there are lots of freshmen (~300 in prod, much more in dev). It works running locally with only two freshmen, so the issue seems to be tied to the amount of data that's being processed and rendered.

My guess is that pagination or lazy loading would solve this.

For pagination, I recommend the flask sqlalchemy paginate function.

Lazy loading is a little more complex, and might need api changes. TL;DR: rather than loading up all the freshmen, then rendering the page, the lazy load version would defer the data loading till after the page is rendered, so the user could interact with the page while it's still being populated. (I'm probably not using the term quite correctly here, but it's close enough to the idea)

Lingua principale
Python
Stelle
25
Fork
33
Merge medio
21g 1h
PR unite (30g)
1

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ComputerScienceHouse/packet

Tutte le issue di ComputerScienceHouse/packet

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.