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

Closed #1095 - improve home initial loading #1096

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

glaubervila
Copy link
Contributor

Foi adicionado um novo serviço "Memcached" para que algumas requisições possam ser respondidas sem a necessidade de executar a query.

Os 2 endpoints (base_dynclass_with_prediction, dynclass_with_prediction) agora estão usando o cache em memoria, defini o cache time para 24h. A cada 24h uma das consultas vai levar o mesmo tempo que está hoje ~12s mas as demais serão quase instantaneas milesimos.

Alterei o filtro default na home para um mes a frente, desta forma a lista de eventos carrega mais rápido.

É necessário adicionar um novo serviço no docker-compose local dos dev, e fazer o build do backend.

  # Memory Cache: Memcached
  # Documentation: https://hub.docker.com/r/bitnami/memcached
  memcached:
    image: bitnami/memcached
    environment:
      - MEMCACHED_CACHE_SIZE=128
      - MEMCACHED_THREADS=4
      - MEMCACHED_MAX_ITEM_SIZE=8388608

Closed #1095

@rcboufleur rcboufleur merged commit 10c7993 into main Oct 17, 2024
4 checks passed
@rcboufleur rcboufleur deleted the improve_home_performance branch October 17, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Melhorar carregamento da home
2 participants