0xPlaygrounds / 0xPlaygrounds/subgrounds

Locking field-paths for data consistency

Đang mở
#25 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Python
Star
73
Fork
12
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Is your feature request related to a problem? Please describe.**
When doing long queries, data gathered towards the end of the query is no longer consistent with the beginning.

**Describe the solution you'd like**
I'd like to ensure data consistency through some form of argument locking.

**Describe alternatives you've considered**
Not making long queries.

**Additional context**
“Lock” fieldpaths (i.e.: add `"block": {"number": end_block}` and `"where {"_change_block": {"number_gte": start_block}}`
- Basically, locking block ranges so that the data accrued is atomic even if new blocks are indexed come in

**Implementation checklist**
- [ ] Task 1

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

The issue mentions adding locking field-paths for data consistency in long queries. Look at the GraphQL query handling code in subgrounds, likely in query builders or data fetching modules. Understand how block ranges are currently handled and where to inject locking logic. Check existing tests for query execution to see how to verify atomicity across blocks.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
blockchain, graphql, python
Lĩnh vực
backend, data-engineering, databases
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.