Morango memory performance improvements

Aberta
#279 0 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 1 dia

@bjester já está trabalhando nisso.

Desde 7/1/2026.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

TAG: performance

What problem are we solving?

  • Memory consumption performance issues with large syncs
  • Addressing architectural things that will further enhance “streaming” syncs

How do we know this is successful?

  • When a large instance (VF DRC on BCK) can sync with KDP, without getting OOM killed on either side

Who is this for?

  • Our own sanity
  • Our users and timely access to their facility data

Are there any assumptions or constraints?

  • We’re likely not going to make the sync any faster by addressing memory issues
    • Although, with proactive planning, we can lay out the improvements to later on address the loss of speed with more drastic restructuring of the sync process itself
  • We should ensure we have locking mechanisms in place to prevent concurrent syncing complications

What approaches/risks were discussed during planning?

  • Overall, breaking down the syncing process into ETL (extract, transform, load) procedures
    • Source models →Transform → Store
    • Store → Transform → Buffer
    • Buffer → Transfer → Buffer
    • Buffer → Transform → Store
    • Store → Transform → Source models
  • Morango doesn’t differentiate between single field updates and full record updates
  • Feasibility of progress tracking in queuing, serialization, dequeuing, and deserialization
  • How the data structure or handling will change with other planned work— possibly integrating CRDTs
  • Managing foreign keys and data relationships to ensure data integrity

What is out of scope?

  • Addressing slow queries
  • Directly addressing speed performance loss

Acceptance Criteria

  • Backwards compatibility
  • Improved memory performance for both Postgres and SQLite database backends
  • Architectural improvements that will enable us to scale it further

Workspace & Resources

Linguagem predominante
Python
Estrelas
15
Forks
27
Merge médio
6d 44min
PRs com merge (30d)
13

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de learningequality/morango

Todas as issues de learningequality/morango

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.