Tests / confs/tests.py
TestLegacyConferenceDataMigration::test_copies_overlapping_legacy_rows_without_clobbering_existing_data
First seen 3 weeks ago in 0c23747
CI
github-actions:test
11 runs
Average
1.77 s
median 1.54 s
max 2.90 s
max 2.90 s
Phases
Setup 3 ms
Call 1.76 s
Teardown 0.83 ms
Categories
Migrations 1.32 s
Database 142 ms
Factories 2 ms
Test code 2 ms
Other (DB schema, Imports, pytest, Libraries, ...) 303 ms
289 database queries per run
Needs 690 KB of memory (max 3 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 7 hours ago ·
open run
setup2 ms0.1%
call1.67 s99.9%
TestLegacyConferenceDataMigration.test_copies_overlapping_legacy_rows_without_clobbering_existing_dataconfs/tests.py:440 self._migrate(latest)524 ms31.3%
TestLegacyConferenceDataMigration._migrateconfs/tests.py:432 executor.migrate(targets)488 ms29.2%
MigrationExecutor.migratedjango/db/migrations/executor.py:137476 ms28.4%
MigrationExecutor._migrate_all_forwardsdjango/db/migrations/executor.py:166243 ms14.5%
cached_property.__get__django/utils/functional.py:47243 ms14.5%
ProjectState.appsdjango/db/migrations/state.py:592243 ms14.5%
__init____init__:-1243 ms14.5%
StateApps.__init__django/db/migrations/state.py:653243 ms14.5%
StateApps.render_multipledjango/db/migrations/state.py:691243 ms14.5%
ModelState.renderdjango/db/migrations/state.py:989229 ms13.6%
ModelBase.__new__django/db/models/base.py:214214 ms12.8%
ModelBase.add_to_classdjango/db/models/base.py:394213 ms12.7%
Field.contribute_to_classdjango/db/models/fields/__init__.py:996207 ms12.4%
__init____init__:-1207 ms12.4%
DeferredAttribute.__init__django/db/models/query_utils.py:256207 ms12.4%
<GC>~207 ms12.4%
3 smaller frames hidden
1 smaller frames hidden
7 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:98212 ms0.7%
2 smaller frames hidden
MigrationExecutor._migrate_all_forwardsdjango/db/migrations/executor.py:169233 ms13.9%
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:257214 ms12.8%
Migration.applydjango/db/migrations/migration.py:132200 ms11.9%
SeparateDatabaseAndState.database_forwardsdjango/db/migrations/operations/special.py:39118 ms7.0%
DeleteModel.database_forwardsdjango/db/migrations/operations/models.py:399118 ms7.0%
BaseDatabaseSchemaEditor.delete_modeldjango/db/backends/base/schema.py:559118 ms7.0%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:48118 ms7.0%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211117 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:79117 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92117 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:103117 ms7.0%
Cursor.executepsycopg/cursor.py:113117 ms7.0%
Connection.waitpsycopg/connection.py:495117 ms7.0%
1 smaller frames hidden
RunPython.database_forwardsdjango/db/migrations/operations/special.py:20370 ms4.2%
migrate_legacy_conferencesconfs/migrations/0033_remove_legacy_conference_tables.py:55545 ms2.7%
migrate_legacy_pairconfs/migrations/0033_remove_legacy_conference_tables.py:40012 ms0.7%
migrate_legacy_pairconfs/migrations/0033_remove_legacy_conference_tables.py:41610 ms0.6%
migrate_legacy_pairconfs/migrations/0033_remove_legacy_conference_tables.py:4078 ms0.5%
_pk_batchesconfs/migrations/0033_remove_legacy_conference_tables.py:214 rows = list(model.objects.filter(pk__gt=last_pk).order_by("pk")[:batch_size])8 ms0.5%
QuerySet.__iter__django/db/models/query.py:4398 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:22628 ms0.5%
ModelIterable.__iter__django/db/models/query.py:1038 ms0.5%
3 smaller frames hidden
migrate_legacy_conferencesconfs/migrations/0033_remove_legacy_conference_tables.py:55711 ms0.6%
migrate_legacy_conferencesconfs/migrations/0033_remove_legacy_conference_tables.py:5518 ms0.5%
1 smaller frames hidden
DeleteModel.database_forwardsdjango/db/migrations/operations/models.py:39910 ms0.6%
BaseDatabaseSchemaEditor.delete_modeldjango/db/backends/base/schema.py:55910 ms0.6%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4810 ms0.6%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21110 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:7910 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9210 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:10310 ms0.6%
Cursor.executepsycopg/cursor.py:11310 ms0.6%
Connection.waitpsycopg/connection.py:49510 ms0.6%
1 smaller frames hidden
Migration.applydjango/db/migrations/migration.py:11812 ms0.7%
SeparateDatabaseAndState.state_forwardsdjango/db/migrations/operations/special.py:3112 ms0.7%
1 smaller frames hidden
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:25417 ms1.0%
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:17817 ms1.0%
Atomic.__exit__django/db/transaction.py:27517 ms1.0%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2617 ms1.0%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:32717 ms1.0%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:30317 ms1.0%
Connection.commitpsycopg/connection.py:30917 ms1.0%
Connection.waitpsycopg/connection.py:49517 ms1.0%
1 smaller frames hidden
3 smaller frames hidden
TestLegacyConferenceDataMigration._migrateconfs/tests.py:430 executor = MigrationExecutor(connection)24 ms1.4%
__init____init__:-124 ms1.4%
MigrationExecutor.__init__django/db/migrations/executor.py:1824 ms1.4%
__init____init__:-124 ms1.4%
MigrationLoader.__init__django/db/migrations/loader.py:5924 ms1.4%
MigrationLoader.build_graphdjango/db/migrations/loader.py:28212 ms0.7%
MigrationLoader.build_graphdjango/db/migrations/loader.py:28810 ms0.6%
MigrationRecorder.applied_migrationsdjango/db/migrations/recorder.py:898 ms0.5%
MigrationRecorder.has_tabledjango/db/migrations/recorder.py:648 ms0.5%
BaseDatabaseIntrospection.table_namesdjango/db/backends/base/introspection.py:708 ms0.5%
BaseDatabaseIntrospection.table_names.<locals>.get_namesdjango/db/backends/base/introspection.py:638 ms0.5%
DatabaseIntrospection.get_table_listdjango/db/backends/postgresql/introspection.py:678 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:798 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:928 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1038 ms0.5%
Cursor.executepsycopg/cursor.py:1138 ms0.5%
Connection.waitpsycopg/connection.py:4958 ms0.5%
1 smaller frames hidden
2 smaller frames hidden
TestLegacyConferenceDataMigration._migrateconfs/tests.py:431 executor.loader.build_graph()11 ms0.6%
TestLegacyConferenceDataMigration.test_copies_overlapping_legacy_rows_without_clobbering_existing_dataconfs/tests.py:438481 ms28.7%
TestLegacyConferenceDataMigration._migrateconfs/tests.py:432 executor.migrate(targets)446 ms26.7%
MigrationExecutor.migratedjango/db/migrations/executor.py:143435 ms26.0%
MigrationExecutor._migrate_all_backwardsdjango/db/migrations/executor.py:221256 ms15.3%
MigrationExecutor.unapply_migrationdjango/db/migrations/executor.py:287176 ms10.5%
Migration.unapplydjango/db/migrations/migration.py:193164 ms9.8%
SeparateDatabaseAndState.database_backwardsdjango/db/migrations/operations/special.py:58121 ms7.3%
DeleteModel.database_backwardsdjango/db/migrations/operations/models.py:404121 ms7.3%
BaseDatabaseSchemaEditor.create_modeldjango/db/backends/base/schema.py:524121 ms7.3%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:45121 ms7.3%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:211121 ms7.3%
CursorWrapper.executedjango/db/backends/utils.py:79121 ms7.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92121 ms7.3%
CursorWrapper._executedjango/db/backends/utils.py:103119 ms7.1%
Cursor.executepsycopg/cursor.py:113119 ms7.1%
Connection.waitpsycopg/connection.py:495119 ms7.1%
RunPython.database_backwardsdjango/db/migrations/operations/special.py:21122 ms1.3%
unmigrate_legacy_conferencesconfs/migrations/0033_remove_legacy_conference_tables.py:562 conference_model.objects.filter(slug__in=LEGACY_SLUGS).delete()22 ms1.3%
QuerySet.deletedjango/db/models/query.py:135713 ms0.8%
Collector.deletedjango/db/models/deletion.py:50211 ms0.6%
QuerySet._raw_deletedjango/db/models/query.py:137911 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162510 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:7910 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9210 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1058 ms0.5%
Cursor.executepsycopg/cursor.py:1138 ms0.5%
Connection.waitpsycopg/connection.py:4958 ms0.5%
BaseCursor._execute_genpsycopg/_cursor_base.py:2068 ms0.5%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:2868 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
QuerySet.deletedjango/db/models/query.py:13568 ms0.5%
DeleteModel.database_backwardsdjango/db/migrations/operations/models.py:40420 ms1.2%
BaseDatabaseSchemaEditor.create_modeldjango/db/backends/base/schema.py:52420 ms1.2%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4520 ms1.2%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21120 ms1.2%
CursorWrapper.executedjango/db/backends/utils.py:7920 ms1.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9220 ms1.2%
CursorWrapper._executedjango/db/backends/utils.py:10320 ms1.2%
Cursor.executepsycopg/cursor.py:11320 ms1.2%
Connection.waitpsycopg/connection.py:49520 ms1.2%
Migration.unapplydjango/db/migrations/migration.py:16610 ms0.6%
SeparateDatabaseAndState.state_forwardsdjango/db/migrations/operations/special.py:3110 ms0.6%
1 smaller frames hidden
MigrationExecutor.unapply_migrationdjango/db/migrations/executor.py:28473 ms4.4%
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:17669 ms4.1%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4569 ms4.1%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21166 ms4.0%
CursorWrapper.executedjango/db/backends/utils.py:7966 ms4.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9266 ms4.0%
CursorWrapper._executedjango/db/backends/utils.py:10366 ms4.0%
Cursor.executepsycopg/cursor.py:11366 ms4.0%
Connection.waitpsycopg/connection.py:49566 ms4.0%
BaseCursor._execute_genpsycopg/_cursor_base.py:20610 ms0.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28610 ms0.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7810 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
MigrationExecutor._migrate_all_backwardsdjango/db/migrations/executor.py:216113 ms6.8%
Migration.mutate_statedjango/db/migrations/migration.py:91113 ms6.8%
CreateModel.state_forwardsdjango/db/migrations/operations/models.py:8669 ms4.1%
ProjectState.add_modeldjango/db/migrations/state.py:12669 ms4.1%
ProjectState.reload_modeldjango/db/migrations/state.py:42666 ms4.0%
ProjectState._reloaddjango/db/migrations/state.py:46165 ms3.9%
StateApps.render_multipledjango/db/migrations/state.py:69165 ms3.9%
ModelState.renderdjango/db/migrations/state.py:98951 ms3.0%
ModelBase.__new__django/db/models/base.py:21419 ms1.1%
ModelBase.add_to_classdjango/db/models/base.py:39418 ms1.1%
ManyToManyField.contribute_to_classdjango/db/models/fields/related.py:209013 ms0.8%
create_many_to_many_intermediary_modeldjango/db/models/fields/related.py:142612 ms0.7%
1 smaller frames hidden
4 smaller frames hidden
12 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:98211 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
AlterTogetherOptionOperation.state_forwardsdjango/db/migrations/operations/models.py:65725 ms1.5%
ProjectState.alter_model_optionsdjango/db/migrations/state.py:19025 ms1.5%
ProjectState.reload_modeldjango/db/migrations/state.py:42625 ms1.5%
ProjectState._reloaddjango/db/migrations/state.py:46124 ms1.4%
StateApps.render_multipledjango/db/migrations/state.py:69124 ms1.4%
ModelState.renderdjango/db/migrations/state.py:98923 ms1.4%
ModelBase.__new__django/db/models/base.py:21423 ms1.4%
ModelBase.add_to_classdjango/db/models/base.py:39423 ms1.4%
ManyToManyField.contribute_to_classdjango/db/models/fields/related.py:207420 ms1.2%
RelatedField.contribute_to_classdjango/db/models/fields/related.py:40520 ms1.2%
lazy_related_operationdjango/db/models/fields/related.py:9520 ms1.2%
Apps.lazy_model_operationdjango/apps/registry.py:38820 ms1.2%
<GC>~20 ms1.2%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
AlterField.state_forwardsdjango/db/migrations/operations/fields.py:22716 ms0.9%
ProjectState.alter_fielddjango/db/migrations/state.py:30512 ms0.7%
ProjectState.reload_modeldjango/db/migrations/state.py:42612 ms0.7%
ProjectState._reloaddjango/db/migrations/state.py:46112 ms0.7%
StateApps.render_multipledjango/db/migrations/state.py:69111 ms0.6%
ModelState.renderdjango/db/migrations/state.py:9898 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
MigrationExecutor._migrate_all_backwardsdjango/db/migrations/executor.py:21043 ms2.6%
Migration.mutate_statedjango/db/migrations/migration.py:9143 ms2.6%
SeparateDatabaseAndState.state_forwardsdjango/db/migrations/operations/special.py:3143 ms2.6%
RemoveConstraint.state_forwardsdjango/db/migrations/operations/models.py:120914 ms0.9%
ProjectState.remove_constraintdjango/db/migrations/state.py:24914 ms0.9%
ProjectState._remove_optiondjango/db/migrations/state.py:21514 ms0.9%
ProjectState.reload_modeldjango/db/migrations/state.py:42611 ms0.6%
ProjectState._reloaddjango/db/migrations/state.py:46111 ms0.6%
StateApps.render_multipledjango/db/migrations/state.py:69111 ms0.6%
ModelState.renderdjango/db/migrations/state.py:98910 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
RemoveField.state_forwardsdjango/db/migrations/operations/fields.py:17110 ms0.6%
ProjectState.remove_fielddjango/db/migrations/state.py:27910 ms0.6%
AlterTogetherOptionOperation.state_forwardsdjango/db/migrations/operations/models.py:65710 ms0.6%
ProjectState.alter_model_optionsdjango/db/migrations/state.py:19010 ms0.6%
ProjectState.reload_modeldjango/db/migrations/state.py:42610 ms0.6%
ProjectState._reloaddjango/db/migrations/state.py:4618 ms0.5%
StateApps.render_multipledjango/db/migrations/state.py:6918 ms0.5%
1 smaller frames hidden
RemoveIndex.state_forwardsdjango/db/migrations/operations/models.py:9618 ms0.5%
ProjectState.remove_indexdjango/db/migrations/state.py:2298 ms0.5%
ProjectState._remove_optiondjango/db/migrations/state.py:2158 ms0.5%
ProjectState.reload_modeldjango/db/migrations/state.py:4268 ms0.5%
ProjectState._reloaddjango/db/migrations/state.py:4618 ms0.5%
StateApps.render_multipledjango/db/migrations/state.py:6918 ms0.5%
1 smaller frames hidden
MigrationExecutor._migrate_all_backwardsdjango/db/migrations/executor.py:20616 ms0.9%
cached_property.__get__django/utils/functional.py:4716 ms0.9%
ProjectState.appsdjango/db/migrations/state.py:59216 ms0.9%
__init____init__:-116 ms0.9%
StateApps.__init__django/db/migrations/state.py:65316 ms0.9%
StateApps.render_multipledjango/db/migrations/state.py:69116 ms0.9%
ModelState.renderdjango/db/migrations/state.py:98910 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
3 smaller frames hidden
TestLegacyConferenceDataMigration._migrateconfs/tests.py:430 executor = MigrationExecutor(connection)18 ms1.1%
MigrationExecutor.__init__django/db/migrations/executor.py:1818 ms1.1%
__init____init__:-118 ms1.1%
MigrationLoader.__init__django/db/migrations/loader.py:5918 ms1.1%
MigrationLoader.build_graphdjango/db/migrations/loader.py:2888 ms0.5%
3 smaller frames hidden
TestLegacyConferenceDataMigration._migrateconfs/tests.py:431 executor.loader.build_graph()14 ms0.9%
MigrationLoader.build_graphdjango/db/migrations/loader.py:2888 ms0.5%
1 smaller frames hidden
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()278 ms16.6%
TransactionTestCase._fixture_teardowndjango/test/testcases.py:1278278 ms16.6%
call_commanddjango/core/management/__init__.py:195277 ms16.5%
BaseCommand.executedjango/core/management/base.py:466277 ms16.5%
Command.handledjango/core/management/commands/flush.py:71186 ms11.1%
BaseDatabaseOperations.execute_sql_flushdjango/db/backends/base/operations.py:493152 ms9.1%
CursorWrapper.executedjango/db/backends/utils.py:79152 ms9.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92152 ms9.1%
CursorWrapper._executedjango/db/backends/utils.py:103152 ms9.1%
Cursor.executepsycopg/cursor.py:113152 ms9.1%
Connection.waitpsycopg/connection.py:495152 ms9.1%
BaseCursor._execute_genpsycopg/_cursor_base.py:20617 ms1.0%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28617 ms1.0%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7817 ms1.0%
BaseDatabaseOperations.execute_sql_flushdjango/db/backends/base/operations.py:48735 ms2.1%
Atomic.__exit__django/db/transaction.py:27535 ms2.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2635 ms2.1%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:32735 ms2.1%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:30335 ms2.1%
Connection.commitpsycopg/connection.py:30935 ms2.1%
Connection.waitpsycopg/connection.py:49535 ms2.1%
Command.handledjango/core/management/commands/flush.py:8985 ms5.1%
emit_post_migrate_signaldjango/core/management/sql.py:5285 ms5.1%
Signal.senddjango/dispatch/dispatcher.py:24983 ms5.0%
create_permissionsdjango/contrib/auth/management/__init__.py:10828 ms1.7%
QuerySet.bulk_createdjango/db/models/query.py:90024 ms1.4%
QuerySet._batched_insertdjango/db/models/query.py:217924 ms1.4%
QuerySet._insertdjango/db/models/query.py:214124 ms1.4%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193622 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:7922 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9222 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:10522 ms1.3%
Cursor.executepsycopg/cursor.py:11322 ms1.3%
Connection.waitpsycopg/connection.py:49522 ms1.3%
BaseCursor._execute_genpsycopg/_cursor_base.py:20614 ms0.9%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28613 ms0.8%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7813 ms0.8%
1 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
2 smaller frames hidden
create_permissionsdjango/contrib/auth/management/__init__.py:6222 ms1.3%
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:14017 ms1.0%
QuerySet.bulk_createdjango/db/models/query.py:90017 ms1.0%
QuerySet._batched_insertdjango/db/models/query.py:217917 ms1.0%
QuerySet._insertdjango/db/models/query.py:214117 ms1.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193616 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:7916 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9216 ms0.9%
CursorWrapper._executedjango/db/backends/utils.py:10516 ms0.9%
Cursor.executepsycopg/cursor.py:11316 ms0.9%
Connection.waitpsycopg/connection.py:49516 ms0.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:20610 ms0.6%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28610 ms0.6%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7810 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
2 smaller frames hidden
create_permissionsdjango/contrib/auth/management/__init__.py:8816 ms0.9%
QuerySet.__iter__django/db/models/query.py:43916 ms0.9%
QuerySet._fetch_alldjango/db/models/query.py:226216 ms0.9%
ValuesListIterable.__iter__django/db/models/query.py:26316 ms0.9%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:157416 ms0.9%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:162512 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:7912 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9212 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:10512 ms0.7%
Cursor.executepsycopg/cursor.py:11312 ms0.7%
Connection.waitpsycopg/connection.py:49512 ms0.7%
1 smaller frames hidden
create_permissionsdjango/contrib/auth/management/__init__.py:8111 ms0.6%
ContentTypeManager.get_for_modelsdjango/contrib/contenttypes/models.py:9110 ms0.6%
QuerySet.__iter__django/db/models/query.py:43910 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:226210 ms0.6%
ModelIterable.__iter__django/db/models/query.py:10310 ms0.6%
1 smaller frames hidden
4 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
TestLegacyConferenceDataMigration.test_copies_overlapping_legacy_rows_without_clobbering_existing_dataconfs/tests.py:439247 ms14.7%
TestLegacyConferenceDataMigration._seed_overlapping_legacy_dataconfs/tests.py:485 .loader.project_state(self._targets_with({"confs": LEGACY_FROM_CONFS, "posts": LEGACY_FROM_POSTS}))69 ms4.1%
TestLegacyConferenceDataMigration._targets_withconfs/tests.py:41848 ms2.9%
TestLegacyConferenceDataMigration._leaf_targetsconfs/tests.py:412 executor = MigrationExecutor(connection)48 ms2.9%
__init____init__:-148 ms2.9%
MigrationExecutor.__init__django/db/migrations/executor.py:1848 ms2.9%
__init____init__:-148 ms2.9%
MigrationLoader.__init__django/db/migrations/loader.py:5948 ms2.9%
MigrationLoader.build_graphdjango/db/migrations/loader.py:28228 ms1.7%
MigrationLoader.load_diskdjango/db/migrations/loader.py:1148 ms0.5%
iter_modules<stdlib>/pkgutil.py:1178 ms0.5%
4 smaller frames hidden
MigrationLoader.build_graphdjango/db/migrations/loader.py:28816 ms0.9%
MigrationRecorder.applied_migrationsdjango/db/migrations/recorder.py:898 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
MigrationLoader.project_statedjango/db/migrations/loader.py:40920 ms1.2%
MigrationGraph.make_statedjango/db/migrations/graph.py:33218 ms1.1%
Migration.mutate_statedjango/db/migrations/migration.py:9118 ms1.1%
AlterField.state_forwardsdjango/db/migrations/operations/fields.py:22714 ms0.9%
ProjectState.alter_fielddjango/db/migrations/state.py:30214 ms0.9%
field_is_referenceddjango/db/migrations/utils.py:12914 ms0.9%
get_referencesdjango/db/migrations/utils.py:1208 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
TestLegacyConferenceDataMigration._seed_overlapping_legacy_dataconfs/tests.py:486 .apps47 ms2.8%
cached_property.__get__django/utils/functional.py:4746 ms2.7%
ProjectState.appsdjango/db/migrations/state.py:59246 ms2.7%
__init____init__:-146 ms2.7%
StateApps.__init__django/db/migrations/state.py:65346 ms2.7%
StateApps.render_multipledjango/db/migrations/state.py:69146 ms2.7%
ModelState.renderdjango/db/migrations/state.py:98226 ms1.6%
Field.clonedjango/db/models/fields/__init__.py:71312 ms0.7%
Field.clonedjango/db/models/fields/__init__.py:71211 ms0.6%
ModelState.renderdjango/db/migrations/state.py:98918 ms1.1%
ModelBase.__new__django/db/models/base.py:2148 ms0.5%
ModelBase.add_to_classdjango/db/models/base.py:3948 ms0.5%
5 smaller frames hidden
1 smaller frames hidden
TestLegacyConferenceDataMigration._seed_overlapping_legacy_dataconfs/tests.py:484 MigrationExecutor(connection)40 ms2.4%
MigrationExecutor.__init__django/db/migrations/executor.py:1840 ms2.4%
__init____init__:-140 ms2.4%
MigrationLoader.__init__django/db/migrations/loader.py:5940 ms2.4%
MigrationLoader.build_graphdjango/db/migrations/loader.py:28222 ms1.3%
MigrationLoader.load_diskdjango/db/migrations/loader.py:11010 ms0.6%
4 smaller frames hidden
MigrationLoader.build_graphdjango/db/migrations/loader.py:28812 ms0.7%
2 smaller frames hidden
TestLegacyConferenceDataMigration._seed_overlapping_legacy_dataconfs/tests.py:496 unrelated_account = baker.make(8 ms0.5%
makemodel_bakery/baker.py:1758 ms0.5%
Baker.makemodel_bakery/baker.py:4548 ms0.5%
Baker._makemodel_bakery/baker.py:5428 ms0.5%
Baker.instancemodel_bakery/baker.py:6598 ms0.5%
Model.savedjango/db/models/base.py:9048 ms0.5%
Model.save_basedjango/db/models/base.py:9968 ms0.5%
Model._save_tabledjango/db/models/base.py:11998 ms0.5%
Model._do_insertdjango/db/models/base.py:12518 ms0.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:878 ms0.5%
QuerySet._insertdjango/db/models/query.py:21418 ms0.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19368 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:798 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:928 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1058 ms0.5%
Cursor.executepsycopg/cursor.py:1138 ms0.5%
27 smaller frames hidden
TestLegacyConferenceDataMigration.test_copies_overlapping_legacy_rows_without_clobbering_existing_dataconfs/tests.py:43553 ms3.2%
TestLegacyConferenceDataMigration._leaf_targetsconfs/tests.py:412 executor = MigrationExecutor(connection)53 ms3.2%
MigrationExecutor.__init__django/db/migrations/executor.py:1853 ms3.2%
__init____init__:-153 ms3.2%
MigrationLoader.__init__django/db/migrations/loader.py:5953 ms3.2%
MigrationLoader.build_graphdjango/db/migrations/loader.py:28843 ms2.6%
MigrationRecorder.applied_migrationsdjango/db/migrations/recorder.py:8940 ms2.4%
MigrationRecorder.has_tabledjango/db/migrations/recorder.py:6428 ms1.7%
BaseDatabaseIntrospection.table_namesdjango/db/backends/base/introspection.py:7028 ms1.7%
BaseDatabaseIntrospection.table_names.<locals>.get_namesdjango/db/backends/base/introspection.py:6328 ms1.7%
DatabaseIntrospection.get_table_listdjango/db/backends/postgresql/introspection.py:6728 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:7928 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9228 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:10328 ms1.7%
Cursor.executepsycopg/cursor.py:11328 ms1.7%
Connection.waitpsycopg/connection.py:49528 ms1.7%
MigrationRecorder.has_tabledjango/db/migrations/recorder.py:6312 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2612 ms0.7%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:32012 ms0.7%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:29612 ms0.7%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30412 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2612 ms0.7%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27912 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2612 ms0.7%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25612 ms0.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2612 ms0.7%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34512 ms0.7%
Connection.connectpsycopg/connection.py:10912 ms0.7%
wait_connpsycopg/waiting.py:1458 ms0.5%
BaseConnection._connect_genpsycopg/_connection_base.py:4398 ms0.5%
2 smaller frames hidden
1 smaller frames hidden
MigrationLoader.build_graphdjango/db/migrations/loader.py:2828 ms0.5%
1 smaller frames hidden
TestLegacyConferenceDataMigration.test_copies_overlapping_legacy_rows_without_clobbering_existing_dataconfs/tests.py:44341 ms2.4%
TestLegacyConferenceDataMigration._migrateconfs/tests.py:432 executor.migrate(targets)14 ms0.9%
TestLegacyConferenceDataMigration._migrateconfs/tests.py:431 executor.loader.build_graph()14 ms0.9%
MigrationLoader.build_graphdjango/db/migrations/loader.py:2888 ms0.5%
2 smaller frames hidden
TestLegacyConferenceDataMigration._migrateconfs/tests.py:430 executor = MigrationExecutor(connection)12 ms0.7%
__init____init__:-112 ms0.7%
MigrationExecutor.__init__django/db/migrations/executor.py:1812 ms0.7%
__init____init__:-112 ms0.7%
MigrationLoader.__init__django/db/migrations/loader.py:5912 ms0.7%
TestLegacyConferenceDataMigration.test_copies_overlapping_legacy_rows_without_clobbering_existing_dataconfs/tests.py:44134 ms2.0%
TestLegacyConferenceDataMigration.test_copies_overlapping_legacy_rows_without_clobbering_existing_dataconfs/tests.py:43614 ms0.9%
TestLegacyConferenceDataMigration._targets_withconfs/tests.py:41814 ms0.9%
TestLegacyConferenceDataMigration._leaf_targetsconfs/tests.py:412 executor = MigrationExecutor(connection)14 ms0.9%
__init____init__:-114 ms0.9%
MigrationExecutor.__init__django/db/migrations/executor.py:1814 ms0.9%
__init____init__:-114 ms0.9%
MigrationLoader.__init__django/db/migrations/loader.py:5914 ms0.9%
Estimated from 1,391 samples; phase durations are exact. Frames from pytest and pluggy are
hidden
.
Hot lines in your code
|
confs/tests.py:432
executor.migrate(targets)
TestLegacyConferenceDataMigration._migrate
· Migrations
|
858 ms |
|
confs/tests.py:412
executor = MigrationExecutor(connection)
TestLegacyConferenceDataMigration._leaf_targets
· Migrations
|
115 ms |
|
confs/tests.py:430
executor = MigrationExecutor(connection)
TestLegacyConferenceDataMigration._migrate
· Migrations
|
54 ms |
|
confs/tests.py:486
.apps
TestLegacyConferenceDataMigration._seed_overlapping_legacy_data
· Migrations
|
47 ms |
|
confs/tests.py:484
MigrationExecutor(connection)
TestLegacyConferenceDataMigration._seed_overlapping_legacy_data
· Migrations
|
40 ms |
|
confs/tests.py:431
executor.loader.build_graph()
TestLegacyConferenceDataMigration._migrate
· Migrations
|
40 ms |
|
confs/migrations/0033_remove_legacy_conference_tables.py:562
conference_model.objects.filter(slug__in=LEGACY_SLUGS).delete()
unmigrate_legacy_conferences
· Migrations
|
22 ms |
|
confs/tests.py:485
.loader.project_state(self._targets_with({"confs": LEGACY_FROM_CONFS, "posts": LEGACY_FROM_POSTS}))
TestLegacyConferenceDataMigration._seed_overlapping_legacy_data
· Migrations
|
20 ms |
|
confs/migrations/0033_remove_legacy_conference_tables.py:214
rows = list(model.objects.filter(pk__gt=last_pk).order_by("pk")[:batch_size])
_pk_batches
· Migrations
|
10 ms |
|
confs/tests.py:496
unrelated_account = baker.make(
TestLegacyConferenceDataMigration._seed_overlapping_legacy_data
· Database
|
8 ms |
Fixtures
Exact setup time| _django_setup_unittest class | 0.34 ms |
| _unittest_setUpClass_fixture_TestLegacyConferenceDataMigration class | 0.13 ms |
| _django_db_marker function | 0.05 ms |
| _template_string_if_invalid_marker function | 0.05 ms |
| _django_isolate_apps function | 0.05 ms |
| _live_server_helper function | 0.04 ms |
| _django_set_urlconf function | 0.04 ms |
| _dj_autoclear_mailbox function | 0.04 ms |
| _django_clear_site_cache function | 0.04 ms |
| monkeypatch function | 0.02 ms |
Database
293 queries · 628 ms
Repeated queries are usually N+1 lookups: fetch them once with select_related / prefetch_related (or selectinload).
22×
SELECT "django_content_type"."model" AS "model" FROM "django_content_type" WHERE "django_content_type"."app_label" = %s
15×
SELECT c.relname, CASE WHEN c.relispartition THEN ? WHEN c.relkind IN (…) THEN ? ELSE ? END, obj_description(c.oid, ?) FROM pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace WHERE c.relkind IN (…) AND n.nspname NOT IN (…) AND pg_catalog.pg_table_is_visible(c.oid)
13×
SELECT "django_migrations"."id", "django_migrations"."app", "django_migrations"."name", "django_migrations"."applied" FROM "django_migrations"
11×
SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type" WHERE ("django_content_type"."app_label" = %s AND "django_content_type"."model" IN (…))
11×
SELECT "auth_permission"."content_type_id" AS "content_type", "auth_permission"."codename" AS "codename" FROM "auth_permission" INNER JOIN "django_content_type" ON ("auth_permission"."content_type_id" = "django_content_type"."id") WHERE "auth_permission"."content_type_id" IN (…) ORDER BY "django_co…
Biggest pieces of work
|
call test body
confs/tests.py:440
|
1.39 s |
|
call _post_teardown
django/test/testcases.py:1243
|
278 ms |
| setup pytest internals | 2 ms |
Reliability
12 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 12 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 7 hours ago | CI github-actions:test | passed | 1.67 s | Profile |
| 16 hours ago | CI github-actions:test | passed | 862 ms | Profile |
| 22 hours ago | CI github-actions:test | passed | 1.50 s | Profile |
| 1 week, 5 days ago | CI github-actions:test | passed | 1.54 s | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 1.70 s | Profile |
| 2 weeks, 2 days ago | CI github-actions:test | passed | 1.54 s | Profile |
| 2 weeks, 4 days ago | CI github-actions:test | passed | 1.40 s | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 1.31 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 2.90 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 2.42 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 2.60 s | Profile |
| 3 weeks ago | CI github-actions:test | passed | 1.53 s | Run |