Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Nadeesha Cabral <[email protected]>
  • Loading branch information
johnjcsmith and nadeesha committed Dec 3, 2024
1 parent 4c73d11 commit 3096df3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions examples/pg-stat-analysis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@

`@inferable/pg-stat-analysis` is an analytical agent designed to evaluate and improve the performance of your PostgreSQL database through recommendations based on access patterns. The agent provides suggestions such as creating indexes or other optimization strategies to enhance query performance. It makes use of the `pg_stat_statements` extension to provide data-driven recommendations.

## Features

- Analyzes PostgreSQL database performance using `pg_stat_statements`.
- Provides suggestions for performance improvements.
- Avoids recommending redundant actions, such as VACUUM suggestions if auto-vacuum is enabled.
- Utilizes type-safety via Zod schema validation.

## Prerequisites

- **Node.js** - Ensure you have Node.js installed.
Expand Down
2 changes: 1 addition & 1 deletion examples/pg-stat-analysis/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { readFileSync, writeFileSync, existsSync } from 'fs';
import { Inferable } from 'inferable';
import { z } from 'zod';

const HISTORY_PATH = './history.json';
const HISTORY_PATH = path.join(__dirname, 'history.json')

if (!existsSync(HISTORY_PATH)) {
writeFileSync(HISTORY_PATH, JSON.stringify({ suggestions: [] }));
Expand Down

0 comments on commit 3096df3

Please sign in to comment.