blazer 1.3.5 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of blazer might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0adfb06c3376d881e64c6114840c671820af6984
4
- data.tar.gz: f9a952e318d859fc789237431d45cfcb449eb4fd
3
+ metadata.gz: 9ebec2b00f0b97033272541d144c26ad98379be5
4
+ data.tar.gz: db8f009f5cb2c12d4a960c2ce5cab96f33e287b0
5
5
  SHA512:
6
- metadata.gz: c8ac8bbcccb233fd609a86f2d1bba4bc249d2a5e0ffb82b0f71b27fedc7c9cac2b7acd78fa129a2459114d376377eb099e030940e7f1e7156a346477640e19bf
7
- data.tar.gz: 4d94409563ce652299418dedee5772afad3860090588877620c85744af7d857569cf476bad6e161ca0f960e09f43d4cbc4eb6aeb82ae54c2c7cf20b1c6b94c61
6
+ metadata.gz: e267ad7981a3ed4d8774e1ef255ebecea5d43edfe97addbe07f2a95a43c1af8344e69834a9978563400294f6ff5012061e0a832cf0bb99d50acf67aa64a1d331
7
+ data.tar.gz: cdea706a25e45acea0cfb660d31bfb6f3d2163319c781ce91bca213b1df0efa69124f339b374d4b7703ba275f486b8c757043889237e3eb6982767538b8ec140
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.4.0
2
+
3
+ - Added `slow` cache mode
4
+ - Fixed `BLAZER_DATABASE_URL required` error
5
+ - Fixed issue with duplicate column names
6
+
1
7
  ## 1.3.5
2
8
 
3
9
  - Fixed error with checks
data/README.md CHANGED
@@ -71,20 +71,21 @@ rake blazer:run_checks SCHEDULE="1 hour"
71
71
  rake blazer:run_checks SCHEDULE="1 day"
72
72
  ```
73
73
 
74
- Here’s what it looks like with cron.
75
-
76
- ```
77
- */5 * * * * * rake blazer:run_checks SCHEDULE="5 minutes"
78
- 0 * * * * * rake blazer:run_checks SCHEDULE="1 hour"
79
- 0 0 * * * * rake blazer:run_checks SCHEDULE="1 day"
80
- ```
81
-
82
74
  You can also set up failing checks to be sent once a day (or whatever you prefer).
83
75
 
84
76
  ```sh
85
77
  rake blazer:send_failing_checks
86
78
  ```
87
79
 
80
+ Here’s what it looks like with cron.
81
+
82
+ ```
83
+ */5 * * * * rake blazer:run_checks SCHEDULE="5 minutes"
84
+ 0 * * * * rake blazer:run_checks SCHEDULE="1 hour"
85
+ 30 7 * * * rake blazer:run_checks SCHEDULE="1 day"
86
+ 0 8 * * * rake blazer:send_failing_checks
87
+ ```
88
+
88
89
  ## Permissions
89
90
 
90
91
  ### PostgreSQL
@@ -211,10 +212,21 @@ smart_columns:
211
212
 
212
213
  ### Caching
213
214
 
214
- Blazer can automatically cache results to improve speed.
215
+ Blazer can automatically cache results to improve speed. It can cache slow queries:
216
+
217
+ ```yml
218
+ cache:
219
+ mode: slow
220
+ expires_in: 60 # min
221
+ slow_threshold: 15 # sec
222
+ ```
223
+
224
+ Or it can cache all queries:
215
225
 
216
226
  ```yml
217
- cache: 60 # minutes
227
+ cache:
228
+ mode: all
229
+ expires_in: 60 # min
218
230
  ```
219
231
 
220
232
  Of course, you can force a refresh at any time.