Add SQL function to create geom/datetime indexes when creating a new Table in the public schema
@bitner 已经在做这个了。
开始于 2023年5月5日。
评估
这个 Issue 还没有评估数据。
描述
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
- 主要语言
- Shell
- 星标
- 329
- 派生
- 33
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
developmentseed/eoAPI 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
developmentseed/eoAPI#224 ·
-
bug
难度 1/5 1 小时以内 新手友好度 70/100
developmentseed/eoAPI#190 · 1 个 reaction ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
developmentseed/eoAPI#235 ·
-
`docker compose up` fails可能重新可做 @hrodmn 于 94 天前认领,目前没有进行中的 PR。 未关闭
developmentseed/eoAPI#229 · 1 条评论 · 1 个 reaction · 已指派 1 人 ·
-
难度 2/5 1-3 小时 新手友好度 38/100
developmentseed/eoAPI#215 · 1 个 reaction ·
查看 developmentseed/eoAPI 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
unixorn/awesome-zsh-plugins#2285 ·
维护者通常 1 天内回复
-
documentation priority: low
难度 2/5 1-3 小时 新手友好度 88/100
snapotter-hq/SnapOtter#1863 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
nasa-jpl/bespokebpv7#51 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
area/rules
难度 2/5 1-3 小时 新手友好度 88/100
usnistgov/macos_security#836 ·
维护者通常 1 天内回复