Skip to content

Commit

Permalink
Add missing index to make submission faster (#280)
Browse files Browse the repository at this point in the history
* add missing index to make submission faster
* Bump datamodelutils to 0.4.5
* See also: uc-cdis/datamodelutils#10
* remove useless implicit query
  • Loading branch information
fantix authored Apr 29, 2019
1 parent 9ddebcf commit 2425220
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ more-itertools==5.0.0
-e git+https://[email protected]/uc-cdis/[email protected]#egg=authutils
-e git+https://[email protected]/uc-cdis/[email protected]#egg=cdis_oauth2client
cdispyutils==0.2.13
datamodelutils==0.4.4
datamodelutils==0.4.5
psqlgraph==1.2.3
-e git+https://[email protected]/NCI-GDC/[email protected]#egg=signpost
# required for gdcdatamodel, not required for sheepdog
Expand Down
3 changes: 2 additions & 1 deletion sheepdog/transactions/transaction_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,8 @@ def write_transaction_log(self):
snapshot.old_props = entity.old_props
snapshot.new_props = entity.node.props
snapshot.action = entity.action
tx_log.entities.append(snapshot)
snapshot.transaction = tx_log
self.session.add(snapshot)
# Must flush to database to create id
tx_log.timestamp = timestamp
if tx_log.documents:
Expand Down

0 comments on commit 2425220

Please sign in to comment.