getsentry / getsentry/sentry-python
StrawberryIntegration slows down query performance dramatically
- 主要语言
- Python
- 星标
- 2.2k
- 派生
- 669
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 213
描述
### How do you use Sentry?
Sentry Saas (sentry.io)
### Version
2.17.0
### Steps to Reproduce
1. Set up a Django project with Strawberry async.
2. Set up a query for an endpoint that returns many objects. I tested with 2,000 objects and only 2 fields for each - an ID and a string, e.g.
```python
@strawberry_django.type(models.Item, fields=["id", "value"], pagination=True)
class Item:
pass
@strawberry.type
class Query:
items: list[types.Item] = strawberry_django.field()
```
```graphql
query Items {
items(pagination: { limit: 2000 }) {
id
value
}
}
```
### Expected Result
Not much performance difference with or without `StrawberryIntegration`
### Actual Result
With `StrawberryIntegration`, this took 3-4x longer. In my case, about 800ms. Without it, I got the results back in 200-250ms.
贡献指南
评估
这个 Issue 还没有评估数据。