QueryWise 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/QUERYWISE_INSTALL.md +67 -0
- data/lib/query_optimizer_client/version.rb +1 -1
- data/query_optimizer_client.gemspec +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1e2af8e4e39aaa70b25e76cc31d1d9b86471852662b14b7fe35ed95411973d6
|
4
|
+
data.tar.gz: 14548bdd8fcc6c6ee17e8c6669720b437987f92754cb30737ee044bbc8619374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 348175008dbd2db11aae172c42ef8806a6c4898489325252fd5a315b8606dd733539df0c045f93fd0b3112cf340136e6ccf98764c9043c649b6b3803c78b916a
|
7
|
+
data.tar.gz: 4a35a2bcce3a0a7142b7db844ab9e1bc575efa5dedb582f054b27fa80045a884923e42559595888c60723447b1129f12c0cceb87f21954a685315446db28c3ea
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# QueryWise Installation Guide
|
2
|
+
|
3
|
+
## 💎 Install from RubyGems
|
4
|
+
|
5
|
+
```bash
|
6
|
+
gem install QueryWise
|
7
|
+
```
|
8
|
+
|
9
|
+
Or add to your Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'QueryWise'
|
13
|
+
```
|
14
|
+
|
15
|
+
## 🚀 Quick Setup
|
16
|
+
|
17
|
+
### 1. Generate Configuration
|
18
|
+
|
19
|
+
```bash
|
20
|
+
rails generate QueryWise:install
|
21
|
+
```
|
22
|
+
|
23
|
+
### 2. Configure API Connection
|
24
|
+
|
25
|
+
Add to your `.env` file:
|
26
|
+
|
27
|
+
```bash
|
28
|
+
QUERY_OPTIMIZER_API_URL=https://your-hosted-api.com/api/v1
|
29
|
+
QUERY_OPTIMIZER_API_KEY=your_api_key_here
|
30
|
+
QUERY_OPTIMIZER_ENABLED=true
|
31
|
+
```
|
32
|
+
|
33
|
+
### 3. Test Your Setup
|
34
|
+
|
35
|
+
```bash
|
36
|
+
rails query_optimizer:check
|
37
|
+
```
|
38
|
+
|
39
|
+
## 📋 Usage Examples
|
40
|
+
|
41
|
+
### Basic Analysis
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
queries = [
|
45
|
+
{ sql: "SELECT * FROM users WHERE id = 1", duration_ms: 50 }
|
46
|
+
]
|
47
|
+
|
48
|
+
result = QueryOptimizerClient.analyze_queries(queries)
|
49
|
+
puts "Score: #{result['data']['summary']['optimization_score']}%"
|
50
|
+
```
|
51
|
+
|
52
|
+
### CI Integration
|
53
|
+
|
54
|
+
```bash
|
55
|
+
rails query_optimizer:ci[85]
|
56
|
+
```
|
57
|
+
|
58
|
+
## 🔗 Links
|
59
|
+
|
60
|
+
- **RubyGems**: https://rubygems.org/gems/QueryWise
|
61
|
+
- **GitHub**: https://github.com/BlairLane22/QueryWise
|
62
|
+
- **Documentation**: See README.md for complete guide
|
63
|
+
|
64
|
+
## 📞 Support
|
65
|
+
|
66
|
+
- **Issues**: https://github.com/BlairLane22/QueryWise/issues
|
67
|
+
- **Discussions**: https://github.com/BlairLane22/QueryWise/discussions
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = "QueryWise - Rails Database Query Optimizer"
|
12
12
|
spec.description = "QueryWise is a lightweight, developer-friendly tool that helps Ruby on Rails teams detect, analyze, and fix inefficient database queries. Automatically detect N+1 queries, slow queries, and missing indexes without needing heavy, expensive Application Performance Monitoring (APM) software."
|
13
|
-
spec.homepage = "https://github.com/BlairLane22/
|
13
|
+
spec.homepage = "https://github.com/BlairLane22/QueryOptimizerAPI"
|
14
14
|
spec.license = "MIT"
|
15
15
|
spec.required_ruby_version = ">= 3.0.0"
|
16
16
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: QueryWise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Blair Lane
|
@@ -158,6 +158,7 @@ files:
|
|
158
158
|
- GEM_gitignore
|
159
159
|
- LICENSE.txt
|
160
160
|
- PUBLISHING_GUIDE.md
|
161
|
+
- QUERYWISE_INSTALL.md
|
161
162
|
- README.md
|
162
163
|
- app.yaml
|
163
164
|
- app/controllers/api/v1/analysis_controller.rb
|
@@ -234,12 +235,12 @@ files:
|
|
234
235
|
- storage/development.sqlite3
|
235
236
|
- storage/test.sqlite3
|
236
237
|
- vendor/.keep
|
237
|
-
homepage: https://github.com/BlairLane22/
|
238
|
+
homepage: https://github.com/BlairLane22/QueryOptimizerAPI
|
238
239
|
licenses:
|
239
240
|
- MIT
|
240
241
|
metadata:
|
241
242
|
allowed_push_host: https://rubygems.org
|
242
|
-
homepage_uri: https://github.com/BlairLane22/
|
243
|
+
homepage_uri: https://github.com/BlairLane22/QueryOptimizerAPI
|
243
244
|
source_code_uri: https://github.com/BlairLane22/QueryWise
|
244
245
|
changelog_uri: https://github.com/BlairLane22/QueryWise/blob/main/CHANGELOG.md
|
245
246
|
documentation_uri: https://github.com/BlairLane22/QueryWise/blob/main/README.md
|