Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
96ff7281
Commit
96ff7281
authored
Apr 28, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "[FIX] pool engine. (maybe need to close somme connexions."
This reverts commit
73b88987
.
parent
4c411e71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
db.py
gargantext/util/db.py
+3
-4
No files found.
gargantext/util/db.py
View file @
96ff7281
...
@@ -12,10 +12,9 @@ def get_engine():
...
@@ -12,10 +12,9 @@ def get_engine():
url
=
'postgresql+psycopg2://{USER}:{PASSWORD}@{HOST}:{PORT}/{NAME}'
.
format
(
url
=
'postgresql+psycopg2://{USER}:{PASSWORD}@{HOST}:{PORT}/{NAME}'
.
format
(
**
settings
.
DATABASES
[
'default'
]
**
settings
.
DATABASES
[
'default'
]
)
)
return
create_engine
(
url
return
create_engine
(
url
,
,
use_native_hstore
=
True
use_native_hstore
=
True
,
,
json_serializer
=
json_dumps
json_serializer
=
json_dumps
,
,
pool_size
=
20
,
max_overflow
=
0
)
)
engine
=
get_engine
()
engine
=
get_engine
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment