Investigate using postgresql ArrayField rather than JSONField for simple, one-dimensional lists of strings

Đang mở
#364 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

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

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.

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.

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

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

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pulp/pulp_python

Tất cả issue của pulp/pulp_python

Issue tương tự

Thêm issue về Python

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.