dexter
2,095
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Ruby
语言
—
创建时间
最近更新
项目能做什么
Postgres 的自动化索引推荐与优化工具。
来源:基于仓库元数据
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Dexter
The automatic indexer for Postgres
[Read about how it works](https://ankane.org/introducing-dexter) or [watch the talk](https://www.youtube.com/watch?v=Mni_1yTaNbE)
[](https://github.com/ankane/dexter/actions)
## Installation
First, install [HypoPG](https://github.com/HypoPG/hypopg) on your database server. This doesn’t require a restart.
```sh
cd /tmp
curl -L https://github.com/HypoPG/hypopg/archive/1.4.5.tar.gz | tar xz
cd hypopg-1.4.5
make
make install # may need sudo
```
And enable it in databases where you want to use Dexter:
```sql
CREATE EXTENSION hypopg;
```
See the [installation notes](#hypopg-installation-notes) if you run into issues.
Then install the command line tool with:
```sh
gem install pgdexter
```
The command line tool is also available with [Docker](#docker) or [Homebrew](#homebrew).
## How to Use
Dexter needs a connection to your database and a source of queries (like [pg_stat_statements](https://www.postgresql.org/docs/current/pgstatstatements.html)) to process.
```sh
dexter -d dbname --pg-stat-statements
```
This finds slow queries and generates output like:
```
Started
Processing 189 new query fingerprints
Index found: public.genres_movies (genre_id)
Index found: public.genres_movies (movie_id)
Index found: public.movies (title)
Index found: public.ratings (movie_id)
Index found: public.ratings (rating)
Index found: public.ratings (user_id)
```
To be safe, Dexter will not create indexes unless you pass the `--create` flag. In this case, you’ll see:
```
Index found: public.ratings (user_id)
Creating index: CREATE INDEX CONCURRENTLY ON "public"."ratings" ("user_id")
Index created: 15243 ms
```
## Connection Options
Dexter supports the same connection options as psql.
```
-h host -U user -p 5432 -d dbname
```
This includes URIs:
```
postgresql://user:pass@host:5432/dbname
```
and connection strings:
```
host=localhost port=5432 dbname=mydb
```
Always make sure your [connection is secure](https://ankane.org/postgres-sslmode-explained) when connecting to a database over a network you don’t fully trust.
## Collecting Queries
Dexter can collect queries from a number of sources.
- [Query stats](#query-stats)
- [Live queries](#live-queries)
- [Log files](#log-files)
- [SQL files](#sql-files)
### Query Stats
Enable [pg_stat_statements](https://www.postgresql.org/docs/current/pgstatstatements.html) in your database.
```psql
CREATE EXTENSION pg_stat_statements;
```
And use:
```sh
dexter <connection-options> --pg-stat-statements
```
### Live Queries
Get live queries from the [pg_stat_activity](https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING-PG-STAT-ACTIVITY-VIEW) view with:
```sh
dexter <connection-options> --pg-stat-activity
```
### Log Files
Enable logging for slow queries in your Postgres config file.
```ini
log_min_duration_statement = 10 # ms
```
And use:
```sh
dexter <
阅读完整原文
项目深度分析 规则生成(AI 未配置)
综合评分 43.1 分。该项目在“个人可实施性”维度得 45 分,“付费可能性”维度得 20.0 分,差异化空间 70.0 分(评分依据见评分卡)。
面向细分需求的二次开发产品
| 产品构想 | 基于 dexter 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。 |
| 目标用户 | 该细分场景用户 |
| 难度/周期 | 中 · 2~6 周 |
| 收费模式 | 买断制 / 订阅制 / 广告 |
| 竞争风险 | 细分需求规模需验证 |
| 依据 | AI 推测:基于项目主题标签的判断 |
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| virattt/dexter | 中文介绍暂未生成 An autonomous agent for deep financial research |
27,816 | TypeScript |
| Karumi/Dexter | 中文介绍暂未生成 Android library that simplifies the process of requesting pe |
5,187 | Java |
| PKU-MARL/DexterousHands | 中文介绍暂未生成 This is a library that provides dual dexterous hand manipula |
1,121 | Python |
| HaddingtonDynamics/Dexter | 中文介绍暂未生成 | 437 | C |
| remoteoss/dexter | 中文介绍暂未生成 A fast, full-featured Elixir LSP that scales. |
428 | Go |
| Wu-Fisher/dexterity-aha-guide | 中文介绍暂未生成 Code to Hand, Zero to Hero |
386 | Python |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建时间待补全,最近推送 |
| 社区活跃 | Star 2,095 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/ankane/dexter.git cd dexter docker compose up -d # 或参考 README 中的 docker run 命令
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。