Investigate using postgresql ArrayField rather than JSONField for simple, one-dimensional lists of strings
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 49
- Fork
- 88
- Merge trung bình
- 1 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 31
Mô tả
We've got a ton of these: https://github.com/pulp/pulp_python/blob/master/pulp_python/app/models.py#L113-L117
It would be interesting whether ArrayField is more efficient or convenient for this use case. https://docs.djangoproject.com/en/3.2/ref/contrib/postgres/fields/#arrayfield
We should do some research to see if it's a good idea - other plugins may want to adopt it also.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Start with pulp_python/app/models.py lines 113-117 and the Django ArrayField documentation. Compare ArrayField with JSONField for the simple one-dimensional string lists described there, including efficiency and convenience. Done means producing a clear recommendation about whether this approach is suitable for adoption by other plugins.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- django, postgresql, python
- Lĩnh vực
- 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