Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Optimize stored data

Đang mở
#46 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
databases

Hướng nghiên cứu

Review the landpks_soil_model and landpks_soilgrids schemas and trace how their result_blob, soilrank, soilIDRank_output_pd, mucompdata_cond_prob, and soilgrids_blob values are used. Determine whether the CSV and JSON should be represented as relational tables, and document the chosen storage design and its migration implications.

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

Mô tả

Description

Currently, we are storing CSV and JSON directly in the database.

landpks_soil_model
+----------------------+-----------------+------+-----+---------+----------------+
| Field                | Type            | Null | Key | Default | Extra          |
+----------------------+-----------------+------+-----+---------+----------------+
| ID                   | bigint unsigned | NO   | PRI | NULL    | auto_increment |
| plot_id              | bigint unsigned | YES  | MUL | 0       |                |
| model_version        | int             | YES  |     | 1       |                |
| result_blob          | mediumtext      | YES  |     | NULL    |                |
| soilIDRank_output_pd | mediumtext      | YES  |     | NULL    |                |
| mucompdata_cond_prob | mediumtext      | YES  |     | NULL    |                |
| soilrank             | mediumtext      | YES  |     | NULL    |                |
+----------------------+-----------------+------+-----+---------+----------------+
  • result_blob: JSON
  • soilrank: JSON
  • soilIDRank_output_pd: CSV
  • mucompdata_cond_prob: CSV

Can/should this data be stored in tabular data?

landpks_soilgrids
+----------------+-----------------+------+-----+---------+----------------+
| Field          | Type            | Null | Key | Default | Extra          |
+----------------+-----------------+------+-----+---------+----------------+
| ID             | bigint unsigned | NO   | PRI | NULL    | auto_increment |
| plot_id        | bigint unsigned | YES  | MUL | 0       |                |
|  model_version | int             | YES  |     | 1       |                |
| soilgrids_blob | mediumtext      | YES  |     | NULL    |                |
+----------------+-----------------+------+-----+---------+----------------+
Ngôn ngữ chính
Python
Star
2
Fork
3
Merge trung bình
21 giờ 49 phút
Pull request đã merge (30 ngày)
3

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

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có 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 techmatters/soil-id-algorithm

Tất cả issue của techmatters/soil-id-algorithm

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.