forked from miguelgrinberg/flasky
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chapter 16: Logging of slow database queries (16a)
- Loading branch information
1 parent
b5a0f07
commit 189b16d
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,11 @@ class Config: | |
FLASKY_MAIL_SENDER = 'Flasky Admin <[email protected]>' | ||
FLASKY_ADMIN = os.environ.get('FLASKY_ADMIN') | ||
SQLALCHEMY_TRACK_MODIFICATIONS = False | ||
SQLALCHEMY_RECORD_QUERIES = True | ||
FLASKY_POSTS_PER_PAGE = 20 | ||
FLASKY_FOLLOWERS_PER_PAGE = 50 | ||
FLASKY_COMMENTS_PER_PAGE = 30 | ||
FLASKY_SLOW_DB_QUERY_TIME = 0.5 | ||
|
||
@staticmethod | ||
def init_app(app): | ||
|