`tool_source`, `tool_version`, and `data_source` should be their own table

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

Maintainer thường phản hồi trong vòng 1 ngày

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
42/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python, sql
Lĩnh vực
databases

Hướng nghiên cứu

Start by locating the database schema and the code that writes to repo_labor, then trace how tool_source, tool_version, and data_source are stored and queried. The issue proposes a table with a unique constraint across those three values and foreign key references from existing records. Done means duplicate strings are stored once and the affected reads and writes still work.

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

Mô tả

data savings database needs-plan

During maintainers call today it was pointed out that Tool source/tool version/data source could be moved to a foreign key ref to save a bunch of space in the DB.

i.e. have a table with an ID and then the three colums (unique constraint over all of them) and every unique set of them just gets its own ID.

this would save us from duplicating the same strings millions/billions of times (such as in the case of the repo_labor table)

Ngôn ngữ chính
Python
Star
18
Fork
33
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

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 chaoss/CollectOSS

Tất cả issue của chaoss/CollectOSS

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.