Add SQL function to create geom/datetime indexes when creating a new Table in the public schema
@bitner đang làm issue này rồi.
Từ ngày 5/5/2023.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
eoAPI is built on top a Postgres database that has a pgSTAC schema but also a public one we can use to store other geo data. We don't have a service to ingest data but I think it will be cool to create a simple SQL script to automatically create INDEX on any geometry and datetime column so eoapi.vector is fast.
CREATE OR REPLACE FUNCTION on_create_table_func()
RETURNS event_trigger AS $$
BEGIN
-- find geom/datetime column
-- add indexes
END
$$
LANGUAGE plpgsql;
CREATE EVENT TRIGGER
on_create_table ON ddl_command_end
WHEN TAG IN ('CREATE TABLE')
EXECUTE PROCEDURE on_create_table_func();
The function and trigger should be used in https://github.com/developmentseed/eoAPI/blob/019e4b56cbfe5919883833a3656c28ba6ad3375e/infrastructure/aws/handlers/db_handler.py#L268
cc @bitner
- Ngôn ngữ chính
- Shell
- Star
- 330
- Fork
- 33
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của developmentseed/eoAPI
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
developmentseed/eoAPI#224 ·
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
developmentseed/eoAPI#190 · 1 reaction ·
-
`docker compose up` fails Đang mở
developmentseed/eoAPI#229 · 1 bình luận · 1 reaction · 1 người được giao ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 38/100
developmentseed/eoAPI#215 · 1 reaction ·
-
Feature Request
developmentseed/eoAPI#193 · 5 bình luận · 1 người được giao ·
Tất cả issue của developmentseed/eoAPI
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
astral-sh/python-build-standalone#1293 ·
-
package-update
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
oSoWoSo/vOid_Community_repOsitory#185 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
carbon-language/carbon-lang#7821 ·