graphql-python / graphql-python/graphene-sqlalchemy
Performance Issue: Inefficient Slicing of Connection Queries
- Linguagem predominante
- Python
- Estrelas
- 985
- Forks
- 223
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
Performance Issue: Inefficient Slicing of Connection Queries
Currently, when performing a connection query with arguments like first: 20, after: some_token, the system retrieves the entire dataset from the database and then applies slicing in-memory. This approach becomes increasingly inefficient as the size of the database grows.
It would be highly beneficial to support slicing directly at the database level to improve performance and reduce unnecessary data processing.
Suggested Improvement:
Implement database-level pagination to handle first, after, etc., during the query execution phase, rather than after data retrieval.
Guia de contribuição
Direção de pesquisa
The issue names no files, tests, or entry points. Start by tracing how connection queries retrieve data and apply first/after slicing, then inspect the SQLAlchemy query construction path. Done means pagination arguments are applied at the database level without retrieving the entire dataset, with performance behavior verified for large result sets.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- graphql, python, sqlalchemy
- Domínio
- backend-api-design, database, performance
- Tipo de issue
- Funcionalidade
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100