luckyframework / luckyframework/avram

Bring in PG extras

Open
#1,077 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Crystal
Stars
183
Forks
67
PR merge metrics
No merged PRs in 30d

Description

This shard is nice https://github.com/matthewmcgarvey/lucky_pg_extras

but what would be even nicer is if you could just do

AppDatabase.query_bloat
AppDatabase..query_index_size
AppDatabase..query_unused_indexes

Then Breeze could add an extension out of the box to view these stats. Granted, that wouldn't really help you in production, but a few of these could be useful in development to catch some things. It would still give you an API to create your own production reporting.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked lucky_pg_extras shard and Avram's existing PostgreSQL database wrapper APIs. Determine the scope of exposing bloat, index-size, and unused-index statistics, then verify that the resulting API can support the proposed Breeze development extension and custom production reporting.

Written by the indexing model from the issue text.

Assessment

Tech stack
crystal, postgresql
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.