Revisit MySQL `bulk_insert` implementation

Đang mở
#425 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ó
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ệ
mariadb, mysql, rust
Lĩnh vực
database

Hướng nghiên cứu

Start by reading the bulk-insert support introduced in issue #414 and the MySQL implementation it added; the payload does not name specific files or tests. Investigate how the implementation handles returned IDs when they are not consecutive, and assess whether MariaDB’s RETURNING support is a viable alternative. Done means a concrete improvement or decision about database support, with appropriate tests.

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

Mô tả

enhancement

In #414 we've added a support for bulk inserting multiple records into DB at once.

The MySQL implementation is pretty fragile, as it depends on the fact that the newly added records usually have consecutive IDs, but this doesn't necessarily have to be the case. It would be good to have a look whether it can be improved somehow.

(It might be worth considering dropping support for MySQL and focusing on MariaDB instead; given it supports RETURNING clause, it might fix more than one issue.)

Ngôn ngữ chính
Rust
Star
1.1k
Fork
57
Merge trung bình
17 giờ 39 phút
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 cot-rs/cot

Tất cả issue của cot-rs/cot

Issue tương tự

Thêm issue về Rust

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.