-
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.
optimising speed of dump (particularly mongo)
- Loading branch information
1 parent
57a391b
commit 67edbcd
Showing
12 changed files
with
112 additions
and
34 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
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 3.2.23 on 2024-01-17 17:57 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('emgapi', '0015_last_updates_on_ebi_searchable_models'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='blacklistedstudy', | ||
options={'managed': False, 'verbose_name': 'blacklisted study', 'verbose_name_plural': 'blacklisted studies'}, | ||
), | ||
migrations.RenameField( | ||
model_name='analysisjob', | ||
old_name='analysis_summary_json', | ||
new_name='analysis_summary', | ||
), | ||
] |
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import logging | ||
from pymongo import monitoring | ||
|
||
|
||
class MongoCommandLogger(monitoring.CommandListener): | ||
|
||
def started(self, event): | ||
logging.debug( | ||
f"Command {event.command}" | ||
) | ||
logging.info( | ||
f"Command {event.command_name} with request id {event.request_id} started on server {event.connection_id}" | ||
) | ||
|
||
def succeeded(self, event): | ||
logging.info( | ||
f"Command {event.command_name} with request id {event.request_id} on server {event.connection_id} " | ||
f"succeeded in {event.duration_micros} microseconds" | ||
) | ||
|
||
def failed(self, event): | ||
logging.info( | ||
f"Command {event.command_name} with request id {event.request_id} on server {event.connection_id} " | ||
f"failed in {event.duration_micros} microseconds" | ||
) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__: str = "2.4.41" | ||
__version__: str = "2.4.43" |
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