Azure / Azure/data-api-builder
Sql: Improve bootstrap performance by getting all the metadata information in one go from the db
- Ngôn ngữ chính
- C#
- Star
- 1.5k
- Fork
- 370
- Merge trung bình
- 3 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 9
Mô tả
In `SqlMetadataProvider`, we use different methods to collect metadata information from the underlying database object source:
1) a DbDataAdapter to get table columns, their type, and primary key
2) GetSchema on Columns to find out if each column has Default value or not.
3) Use a ForeignKey Query to derive the referenced table, and the referenced columns.
This involves multiple round trips to the database.
This issue is to investigate if we can optimize this bootstrap to acquire all this information in a single roundtrip.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách xác định SqlMetadataProvider và lần theo các đường dẫn DbDataAdapter, GetSchema trên Columns và ForeignKey Query. Xác định xem cơ sở dữ liệu có thể cung cấp đồng thời các cột, kiểu, khóa chính, giá trị mặc định và các tham chiếu khóa ngoại hay không, sau đó xác minh rằng bootstrap bảo toàn toàn bộ metadata trong khi giảm số lần round trip đến cơ sở dữ liệu xuống còn một.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp, sql
- Lĩnh vực
- backend-api-design, databases, performance
- Loại issue
- Tái cấu trúc
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- 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