Changeset 9e6d8a2 for docs/P6-AdvancedReports/AdvancedReportsAIUsage.md
- Timestamp:
- 09/17/26 00:36:39 (13 days ago)
- Branches:
- main
- Children:
- 4438e45
- Parents:
- 35bcb41
- File:
-
- 1 edited
-
docs/P6-AdvancedReports/AdvancedReportsAIUsage.md (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
docs/P6-AdvancedReports/AdvancedReportsAIUsage.md
r35bcb41 r9e6d8a2 126 126 > [`reports_demo_data.sql`](../../server/db/reports_demo_data.sql) directly. Append any further 127 127 > prompts here if you ask for revisions. 128 129 ### Follow-up — 2026-09-17 130 131 **Intent:** simplify the market performance report after seeing it run — with only a handful 132 of trades per market in most periods, price volatility read as noise rather than a useful 133 signal. 134 135 **Prompt (student, verbatim):** 136 > Can you tell me the exact database_url so I can execute the schema creating and the data_load? 137 > 138 > From the Market Performance can we remove Volatility, I don't think that is that useful, also 139 > can you tell me what is users column? 140 141 **Response (AI, summarised):** 142 - Gave the local dev connection string (`postgresql://bp_project:1234@localhost:5433/bp_database`, 143 from `.env`) and explained `participating_users` is `COUNT(DISTINCT user_id)` from that 144 market's executed orders, not from `market_trades` (which has no `user_id`). 145 - Removed `price_volatility`/`STDDEV(price)` from `report_market_performance()` in 146 `schema_creation.sql`, from its `RETURNS TABLE` and its `SELECT`, and from the corresponding 147 column in `server/reports.go`'s `ShowMarketPerformance`. 148 - Updated the relational algebra (`Stats`, `Result`) and the SQL listing, verified run output, 149 and prose in [AdvancedReports.md](AdvancedReports.md) to match, and added a short note 150 explaining why the column was dropped. 151 - Rebuilt, re-ran `-init` and `reports_demo_data.sql` against the live database, and 152 re-verified the market performance report through the actual CLI before and after the 153 change to confirm only the one column disappeared and every other number is unchanged. 154 155 **What I decided:** to drop the column entirely rather than keep it computed-but-hidden, 156 since an unused computation left in the query is exactly the kind of thing that should not 157 survive a review.
Note:
See TracChangeset
for help on using the changeset viewer.
