Tests / confs/tests.py
TestLegacyConferenceDataMigration::test_copies_overlapping_legacy_rows_without_clobbering_existing_data
First seen 12 hours ago in 0c23747
CI
github-actions:test
4 runs
Average
2.31 s
median 2.51 s
max 2.90 s
max 2.90 s
Phases
Setup 4 ms
Call 2.30 s
Teardown 0.47 ms
Categories
Migrations 1.89 s
Database 98 ms
Factories 2 ms
Other (DB schema, Imports, Libraries, pytest, ...) 318 ms
289 database queries per run
Needs 1 MB of memory (max 3 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 6 hours ago ·
open run
call1.31 s99.9%
TestLegacyConferenceDataMigration.test_copies_overlapping_legacy_rows_without_clobbering_existing_dataconfs/tests.py:440 self._migrate(latest)445 ms34.0%
TestLegacyConferenceDataMigration._migrateconfs/tests.py:432 executor.migrate(targets)417 ms31.8%
MigrationExecutor.migratedjango/db/migrations/executor.py:137405 ms30.9%
MigrationExecutor._migrate_all_forwardsdjango/db/migrations/executor.py:169386 ms29.5%
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:254211 ms16.1%
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:178211 ms16.1%
Atomic.__exit__django/db/transaction.py:275211 ms16.1%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:26211 ms16.1%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:327211 ms16.1%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:303211 ms16.1%
Connection.commitpsycopg/connection.py:309211 ms16.1%
Connection.waitpsycopg/connection.py:495211 ms16.1%
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:257172 ms13.1%
Migration.applydjango/db/migrations/migration.py:132153 ms11.7%
SeparateDatabaseAndState.database_forwardsdjango/db/migrations/operations/special.py:3991 ms7.0%
DeleteModel.database_forwardsdjango/db/migrations/operations/models.py:39991 ms7.0%
BaseDatabaseSchemaEditor.delete_modeldjango/db/backends/base/schema.py:55991 ms7.0%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4891 ms7.0%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21191 ms7.0%
CursorWrapper.executedjango/db/backends/utils.py:7991 ms7.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9291 ms7.0%
CursorWrapper._executedjango/db/backends/utils.py:10391 ms7.0%
Cursor.executepsycopg/cursor.py:11391 ms7.0%
Connection.waitpsycopg/connection.py:49591 ms7.0%
RunPython.database_forwardsdjango/db/migrations/operations/special.py:20352 ms4.0%
migrate_legacy_conferencesconfs/migrations/0033_remove_legacy_conference_tables.py:55536 ms2.7%
migrate_legacy_pairconfs/migrations/0033_remove_legacy_conference_tables.py:4008 ms0.6%
migrate_legacy_pairconfs/migrations/0033_remove_legacy_conference_tables.py:4168 ms0.6%
_resolve_postsconfs/migrations/0033_remove_legacy_conference_tables.py:279 post_model.objects.bulk_create(to_create, ignore_conflicts=True, batch_size=IN_CHUNK_SIZE)7 ms0.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:877 ms0.5%
QuerySet.bulk_createdjango/db/models/query.py:9007 ms0.5%
QuerySet._batched_insertdjango/db/models/query.py:21797 ms0.5%
QuerySet._insertdjango/db/models/query.py:21417 ms0.5%
1 smaller frames hidden
migrate_legacy_pairconfs/migrations/0033_remove_legacy_conference_tables.py:4197 ms0.5%
3 smaller frames hidden
migrate_legacy_conferencesconfs/migrations/0033_remove_legacy_conference_tables.py:5579 ms0.7%
2 smaller frames hidden
2 smaller frames hidden
Migration.applydjango/db/migrations/migration.py:11818 ms1.4%
SeparateDatabaseAndState.state_forwardsdjango/db/migrations/operations/special.py:3117 ms1.3%
AlterTogetherOptionOperation.state_forwardsdjango/db/migrations/operations/models.py:6578 ms0.6%
ProjectState.alter_model_optionsdjango/db/migrations/state.py:1908 ms0.6%
ProjectState.reload_modeldjango/db/migrations/state.py:4268 ms0.6%
ProjectState._reloaddjango/db/migrations/state.py:4618 ms0.6%
StateApps.render_multipledjango/db/migrations/state.py:6917 ms0.5%
1 smaller frames hidden
4 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
MigrationExecutor._migrate_all_forwardsdjango/db/migrations/executor.py:16619 ms1.4%
cached_property.__get__django/utils/functional.py:4719 ms1.4%
ProjectState.appsdjango/db/migrations/state.py:59219 ms1.4%
__init____init__:-119 ms1.4%
StateApps.__init__django/db/migrations/state.py:65319 ms1.4%
StateApps.render_multipledjango/db/migrations/state.py:69119 ms1.4%
ModelState.renderdjango/db/migrations/state.py:98915 ms1.2%
ModelBase.__new__django/db/models/base.py:2149 ms0.7%
ModelBase.add_to_classdjango/db/models/base.py:3949 ms0.7%
4 smaller frames hidden
1 smaller frames hidden
4 smaller frames hidden
TestLegacyConferenceDataMigration._migrateconfs/tests.py:430 executor = MigrationExecutor(connection)14 ms1.1%
__init____init__:-114 ms1.1%
MigrationExecutor.__init__django/db/migrations/executor.py:1814 ms1.1%
__init____init__:-114 ms1.1%
MigrationLoader.__init__django/db/migrations/loader.py:5914 ms1.1%
TestLegacyConferenceDataMigration._migrateconfs/tests.py:431 executor.loader.build_graph()14 ms1.1%
MigrationLoader.build_graphdjango/db/migrations/loader.py:2827 ms0.5%
2 smaller frames hidden
TestLegacyConferenceDataMigration.test_copies_overlapping_legacy_rows_without_clobbering_existing_dataconfs/tests.py:438389 ms29.7%
TestLegacyConferenceDataMigration._migrateconfs/tests.py:432 executor.migrate(targets)357 ms27.3%
MigrationExecutor.migratedjango/db/migrations/executor.py:143345 ms26.4%
MigrationExecutor._migrate_all_backwardsdjango/db/migrations/executor.py:221199 ms15.2%
MigrationExecutor.unapply_migrationdjango/db/migrations/executor.py:287142 ms10.9%
Migration.unapplydjango/db/migrations/migration.py:19399 ms7.5%
SeparateDatabaseAndState.database_backwardsdjango/db/migrations/operations/special.py:5869 ms5.3%
DeleteModel.database_backwardsdjango/db/migrations/operations/models.py:40469 ms5.3%
BaseDatabaseSchemaEditor.create_modeldjango/db/backends/base/schema.py:52453 ms4.1%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4553 ms4.1%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21152 ms4.0%
CursorWrapper.executedjango/db/backends/utils.py:7952 ms4.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9252 ms4.0%
CursorWrapper._executedjango/db/backends/utils.py:10351 ms3.9%
Cursor.executepsycopg/cursor.py:11351 ms3.9%
Connection.waitpsycopg/connection.py:49551 ms3.9%
BaseCursor._execute_genpsycopg/_cursor_base.py:20617 ms1.3%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28617 ms1.3%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7817 ms1.3%
1 smaller frames hidden
BaseDatabaseSchemaEditor.create_modeldjango/db/backends/base/schema.py:52114 ms1.1%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4511 ms0.8%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21111 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:7911 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9211 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:10311 ms0.8%
Cursor.executepsycopg/cursor.py:11311 ms0.8%
Connection.waitpsycopg/connection.py:49511 ms0.8%
3 smaller frames hidden
1 smaller frames hidden
DeleteModel.database_backwardsdjango/db/migrations/operations/models.py:40414 ms1.1%
BaseDatabaseSchemaEditor.create_modeldjango/db/backends/base/schema.py:52412 ms0.9%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4512 ms0.9%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21112 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:7912 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9212 ms0.9%
CursorWrapper._executedjango/db/backends/utils.py:10312 ms0.9%
Cursor.executepsycopg/cursor.py:11312 ms0.9%
Connection.waitpsycopg/connection.py:49512 ms0.9%
2 smaller frames hidden
RunPython.database_backwardsdjango/db/migrations/operations/special.py:21112 ms0.9%
unmigrate_legacy_conferencesconfs/migrations/0033_remove_legacy_conference_tables.py:562 conference_model.objects.filter(slug__in=LEGACY_SLUGS).delete()12 ms0.9%
QuerySet.deletedjango/db/models/query.py:13577 ms0.5%
Collector.deletedjango/db/models/deletion.py:5027 ms0.5%
QuerySet._raw_deletedjango/db/models/query.py:13797 ms0.5%
1 smaller frames hidden
2 smaller frames hidden
Migration.unapplydjango/db/migrations/migration.py:16643 ms3.3%
SeparateDatabaseAndState.state_forwardsdjango/db/migrations/operations/special.py:3143 ms3.3%
RemoveConstraint.state_forwardsdjango/db/migrations/operations/models.py:120918 ms1.4%
ProjectState.remove_constraintdjango/db/migrations/state.py:24918 ms1.4%
ProjectState._remove_optiondjango/db/migrations/state.py:21518 ms1.4%
ProjectState.reload_modeldjango/db/migrations/state.py:42617 ms1.3%
ProjectState._reloaddjango/db/migrations/state.py:46115 ms1.2%
StateApps.render_multipledjango/db/migrations/state.py:69115 ms1.2%
ModelState.renderdjango/db/migrations/state.py:9829 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
AlterTogetherOptionOperation.state_forwardsdjango/db/migrations/operations/models.py:65713 ms1.0%
ProjectState.alter_model_optionsdjango/db/migrations/state.py:19013 ms1.0%
ProjectState.reload_modeldjango/db/migrations/state.py:42612 ms0.9%
ProjectState._reloaddjango/db/migrations/state.py:46112 ms0.9%
StateApps.render_multipledjango/db/migrations/state.py:69112 ms0.9%
ModelState.renderdjango/db/migrations/state.py:9827 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
RemoveIndex.state_forwardsdjango/db/migrations/operations/models.py:9618 ms0.6%
ProjectState.remove_indexdjango/db/migrations/state.py:2298 ms0.6%
ProjectState._remove_optiondjango/db/migrations/state.py:2158 ms0.6%
ProjectState.reload_modeldjango/db/migrations/state.py:4267 ms0.5%
ProjectState._reloaddjango/db/migrations/state.py:4617 ms0.5%
StateApps.render_multipledjango/db/migrations/state.py:6917 ms0.5%
1 smaller frames hidden
2 smaller frames hidden
1 smaller frames hidden
MigrationExecutor.unapply_migrationdjango/db/migrations/executor.py:28450 ms3.8%
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:17643 ms3.3%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4543 ms3.3%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21142 ms3.2%
CursorWrapper.executedjango/db/backends/utils.py:7942 ms3.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9242 ms3.2%
CursorWrapper._executedjango/db/backends/utils.py:10342 ms3.2%
Cursor.executepsycopg/cursor.py:11342 ms3.2%
Connection.waitpsycopg/connection.py:49542 ms3.2%
BaseCursor._execute_genpsycopg/_cursor_base.py:20627 ms2.1%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28627 ms2.1%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7827 ms2.1%
1 smaller frames hidden
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:1787 ms0.5%
Atomic.__exit__django/db/transaction.py:2757 ms0.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:267 ms0.5%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:3277 ms0.5%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:3037 ms0.5%
Connection.commitpsycopg/connection.py:3097 ms0.5%
Connection.waitpsycopg/connection.py:4957 ms0.5%
MigrationExecutor.unapply_migrationdjango/db/migrations/executor.py:2887 ms0.5%
MigrationExecutor.record_migrationdjango/db/migrations/executor.py:2777 ms0.5%
MigrationExecutor._migrate_all_backwardsdjango/db/migrations/executor.py:21675 ms5.7%
Migration.mutate_statedjango/db/migrations/migration.py:9175 ms5.7%
CreateModel.state_forwardsdjango/db/migrations/operations/models.py:8644 ms3.4%
ProjectState.add_modeldjango/db/migrations/state.py:12644 ms3.4%
ProjectState.reload_modeldjango/db/migrations/state.py:42643 ms3.3%
ProjectState._reloaddjango/db/migrations/state.py:46143 ms3.3%
StateApps.render_multipledjango/db/migrations/state.py:69143 ms3.3%
ModelState.renderdjango/db/migrations/state.py:98933 ms2.5%
ModelBase.__new__django/db/models/base.py:21423 ms1.7%
ModelBase.add_to_classdjango/db/models/base.py:39423 ms1.7%
DateField.contribute_to_classdjango/db/models/fields/__init__.py:156014 ms1.1%
Field.contribute_to_classdjango/db/models/fields/__init__.py:99613 ms1.0%
__init____init__:-113 ms1.0%
DeferredAttribute.__init__django/db/models/query_utils.py:25613 ms1.0%
<GC>~13 ms1.0%
5 smaller frames hidden
6 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:9828 ms0.6%
Field.clonedjango/db/models/fields/__init__.py:7127 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
AlterField.state_forwardsdjango/db/migrations/operations/fields.py:22717 ms1.3%
ProjectState.alter_fielddjango/db/migrations/state.py:30512 ms0.9%
ProjectState.reload_modeldjango/db/migrations/state.py:42611 ms0.8%
ProjectState._reloaddjango/db/migrations/state.py:46111 ms0.8%
StateApps.render_multipledjango/db/migrations/state.py:69111 ms0.8%
ModelState.renderdjango/db/migrations/state.py:9897 ms0.5%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
AlterTogetherOptionOperation.state_forwardsdjango/db/migrations/operations/models.py:6579 ms0.7%
ProjectState.alter_model_optionsdjango/db/migrations/state.py:1909 ms0.7%
ProjectState.reload_modeldjango/db/migrations/state.py:4268 ms0.6%
ProjectState._reloaddjango/db/migrations/state.py:4618 ms0.6%
StateApps.render_multipledjango/db/migrations/state.py:6918 ms0.6%
1 smaller frames hidden
2 smaller frames hidden
MigrationExecutor._migrate_all_backwardsdjango/db/migrations/executor.py:21043 ms3.3%
Migration.mutate_statedjango/db/migrations/migration.py:9140 ms3.1%
SeparateDatabaseAndState.state_forwardsdjango/db/migrations/operations/special.py:3140 ms3.1%
AlterTogetherOptionOperation.state_forwardsdjango/db/migrations/operations/models.py:65717 ms1.3%
ProjectState.alter_model_optionsdjango/db/migrations/state.py:19017 ms1.3%
ProjectState.reload_modeldjango/db/migrations/state.py:42612 ms0.9%
ProjectState._reloaddjango/db/migrations/state.py:46112 ms0.9%
StateApps.render_multipledjango/db/migrations/state.py:69112 ms0.9%
ModelState.renderdjango/db/migrations/state.py:9899 ms0.7%
2 smaller frames hidden
1 smaller frames hidden
RemoveConstraint.state_forwardsdjango/db/migrations/operations/models.py:120912 ms0.9%
ProjectState.remove_constraintdjango/db/migrations/state.py:24912 ms0.9%
ProjectState._remove_optiondjango/db/migrations/state.py:21512 ms0.9%
ProjectState.reload_modeldjango/db/migrations/state.py:42612 ms0.9%
ProjectState._reloaddjango/db/migrations/state.py:46112 ms0.9%
StateApps.render_multipledjango/db/migrations/state.py:69112 ms0.9%
ModelState.renderdjango/db/migrations/state.py:9898 ms0.6%
1 smaller frames hidden
3 smaller frames hidden
1 smaller frames hidden
MigrationExecutor._migrate_all_backwardsdjango/db/migrations/executor.py:20627 ms2.1%
cached_property.__get__django/utils/functional.py:4727 ms2.1%
ProjectState.appsdjango/db/migrations/state.py:59227 ms2.1%
__init____init__:-127 ms2.1%
StateApps.__init__django/db/migrations/state.py:65327 ms2.1%
StateApps.render_multipledjango/db/migrations/state.py:69127 ms2.1%
ModelState.renderdjango/db/migrations/state.py:98214 ms1.1%
Field.clonedjango/db/models/fields/__init__.py:7137 ms0.5%
Field.clonedjango/db/models/fields/__init__.py:7127 ms0.5%
ModelState.renderdjango/db/migrations/state.py:98913 ms1.0%
ModelBase.__new__django/db/models/base.py:2148 ms0.6%
ModelBase.add_to_classdjango/db/models/base.py:3947 ms0.5%
1 smaller frames hidden
4 smaller frames hidden
1 smaller frames hidden
3 smaller frames hidden
TestLegacyConferenceDataMigration._migrateconfs/tests.py:431 executor.loader.build_graph()17 ms1.3%
MigrationLoader.build_graphdjango/db/migrations/loader.py:2827 ms0.5%
MigrationLoader.build_graphdjango/db/migrations/loader.py:2887 ms0.5%
2 smaller frames hidden
TestLegacyConferenceDataMigration._migrateconfs/tests.py:430 executor = MigrationExecutor(connection)15 ms1.2%
MigrationExecutor.__init__django/db/migrations/executor.py:1815 ms1.2%
__init____init__:-115 ms1.2%
MigrationLoader.__init__django/db/migrations/loader.py:5915 ms1.2%
MigrationLoader.build_graphdjango/db/migrations/loader.py:2887 ms0.5%
3 smaller frames hidden
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()241 ms18.4%
TransactionTestCase._fixture_teardowndjango/test/testcases.py:1278241 ms18.4%
call_commanddjango/core/management/__init__.py:195241 ms18.4%
BaseCommand.executedjango/core/management/base.py:466241 ms18.4%
Command.handledjango/core/management/commands/flush.py:71138 ms10.5%
BaseDatabaseOperations.execute_sql_flushdjango/db/backends/base/operations.py:49389 ms6.8%
CursorWrapper.executedjango/db/backends/utils.py:7989 ms6.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9289 ms6.8%
CursorWrapper._executedjango/db/backends/utils.py:10389 ms6.8%
Cursor.executepsycopg/cursor.py:11389 ms6.8%
Connection.waitpsycopg/connection.py:49589 ms6.8%
BaseDatabaseOperations.execute_sql_flushdjango/db/backends/base/operations.py:48749 ms3.7%
Atomic.__exit__django/db/transaction.py:27549 ms3.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2649 ms3.7%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:32749 ms3.7%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:30349 ms3.7%
Connection.commitpsycopg/connection.py:30949 ms3.7%
Connection.waitpsycopg/connection.py:49549 ms3.7%
Command.handledjango/core/management/commands/flush.py:89100 ms7.6%
emit_post_migrate_signaldjango/core/management/sql.py:52100 ms7.6%
Signal.senddjango/dispatch/dispatcher.py:249100 ms7.6%
create_permissionsdjango/contrib/auth/management/__init__.py:6268 ms5.2%
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:14061 ms4.6%
QuerySet.bulk_createdjango/db/models/query.py:90061 ms4.6%
QuerySet._batched_insertdjango/db/models/query.py:217961 ms4.6%
QuerySet._insertdjango/db/models/query.py:214161 ms4.6%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193658 ms4.4%
CursorWrapper.executedjango/db/backends/utils.py:7958 ms4.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9258 ms4.4%
CursorWrapper._executedjango/db/backends/utils.py:10558 ms4.4%
Cursor.executepsycopg/cursor.py:11358 ms4.4%
Connection.waitpsycopg/connection.py:49558 ms4.4%
2 smaller frames hidden
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:1307 ms0.5%
QuerySet.__iter__django/db/models/query.py:4397 ms0.5%
QuerySet._fetch_alldjango/db/models/query.py:22627 ms0.5%
FlatValuesListIterable.__iter__django/db/models/query.py:3027 ms0.5%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15747 ms0.5%
create_permissionsdjango/contrib/auth/management/__init__.py:10811 ms0.8%
QuerySet.bulk_createdjango/db/models/query.py:90011 ms0.8%
QuerySet._batched_insertdjango/db/models/query.py:217911 ms0.8%
QuerySet._insertdjango/db/models/query.py:214111 ms0.8%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193611 ms0.8%
CursorWrapper.executedjango/db/backends/utils.py:7911 ms0.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9211 ms0.8%
CursorWrapper._executedjango/db/backends/utils.py:10511 ms0.8%
Cursor.executepsycopg/cursor.py:11311 ms0.8%
Connection.waitpsycopg/connection.py:49511 ms0.8%
create_permissionsdjango/contrib/auth/management/__init__.py:8811 ms0.8%
QuerySet.__iter__django/db/models/query.py:43911 ms0.8%
QuerySet._fetch_alldjango/db/models/query.py:226211 ms0.8%
ValuesListIterable.__iter__django/db/models/query.py:26311 ms0.8%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:157411 ms0.8%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16258 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:798 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:928 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1058 ms0.6%
Cursor.executepsycopg/cursor.py:1138 ms0.6%
Connection.waitpsycopg/connection.py:4958 ms0.6%
1 smaller frames hidden
create_permissionsdjango/contrib/auth/management/__init__.py:817 ms0.5%
3 smaller frames hidden
1 smaller frames hidden
TestLegacyConferenceDataMigration.test_copies_overlapping_legacy_rows_without_clobbering_existing_dataconfs/tests.py:439123 ms9.4%
TestLegacyConferenceDataMigration._seed_overlapping_legacy_dataconfs/tests.py:485 .loader.project_state(self._targets_with({"confs": LEGACY_FROM_CONFS, "posts": LEGACY_FROM_POSTS}))23 ms1.7%
TestLegacyConferenceDataMigration._targets_withconfs/tests.py:41818 ms1.4%
TestLegacyConferenceDataMigration._leaf_targetsconfs/tests.py:412 executor = MigrationExecutor(connection)18 ms1.4%
__init____init__:-118 ms1.4%
MigrationExecutor.__init__django/db/migrations/executor.py:1818 ms1.4%
__init____init__:-118 ms1.4%
MigrationLoader.__init__django/db/migrations/loader.py:5918 ms1.4%
MigrationLoader.build_graphdjango/db/migrations/loader.py:28211 ms0.8%
2 smaller frames hidden
1 smaller frames hidden
TestLegacyConferenceDataMigration._seed_overlapping_legacy_dataconfs/tests.py:486 .apps23 ms1.7%
cached_property.__get__django/utils/functional.py:4723 ms1.7%
ProjectState.appsdjango/db/migrations/state.py:59223 ms1.7%
__init____init__:-123 ms1.7%
StateApps.__init__django/db/migrations/state.py:65323 ms1.7%
StateApps.render_multipledjango/db/migrations/state.py:69123 ms1.7%
ModelState.renderdjango/db/migrations/state.py:98915 ms1.2%
ModelBase.__new__django/db/models/base.py:2148 ms0.6%
ModelBase.add_to_classdjango/db/models/base.py:3948 ms0.6%
5 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:9827 ms0.5%
TestLegacyConferenceDataMigration._seed_overlapping_legacy_dataconfs/tests.py:484 MigrationExecutor(connection)19 ms1.4%
MigrationExecutor.__init__django/db/migrations/executor.py:1819 ms1.4%
__init____init__:-119 ms1.4%
MigrationLoader.__init__django/db/migrations/loader.py:5919 ms1.4%
MigrationLoader.build_graphdjango/db/migrations/loader.py:2829 ms0.7%
MigrationLoader.load_diskdjango/db/migrations/loader.py:1107 ms0.5%
2 smaller frames hidden
MigrationLoader.build_graphdjango/db/migrations/loader.py:2887 ms0.5%
1 smaller frames hidden
TestLegacyConferenceDataMigration._seed_overlapping_legacy_dataconfs/tests.py:496 unrelated_account = baker.make(7 ms0.5%
makemodel_bakery/baker.py:1757 ms0.5%
Baker.makemodel_bakery/baker.py:4547 ms0.5%
Baker._makemodel_bakery/baker.py:5427 ms0.5%
Baker.instancemodel_bakery/baker.py:6597 ms0.5%
Model.savedjango/db/models/base.py:9047 ms0.5%
Model.save_basedjango/db/models/base.py:9967 ms0.5%
Model._save_tabledjango/db/models/base.py:11997 ms0.5%
Model._do_insertdjango/db/models/base.py:12517 ms0.5%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:877 ms0.5%
QuerySet._insertdjango/db/models/query.py:21417 ms0.5%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19367 ms0.5%
CursorWrapper.executedjango/db/backends/utils.py:797 ms0.5%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:927 ms0.5%
CursorWrapper._executedjango/db/backends/utils.py:1057 ms0.5%
Cursor.executepsycopg/cursor.py:1137 ms0.5%
Connection.waitpsycopg/connection.py:4957 ms0.5%
23 smaller frames hidden
TestLegacyConferenceDataMigration.test_copies_overlapping_legacy_rows_without_clobbering_existing_dataconfs/tests.py:43550 ms3.8%
TestLegacyConferenceDataMigration._leaf_targetsconfs/tests.py:412 executor = MigrationExecutor(connection)50 ms3.8%
MigrationExecutor.__init__django/db/migrations/executor.py:1850 ms3.8%
__init____init__:-150 ms3.8%
MigrationLoader.__init__django/db/migrations/loader.py:5950 ms3.8%
MigrationLoader.build_graphdjango/db/migrations/loader.py:28837 ms2.8%
MigrationRecorder.applied_migrationsdjango/db/migrations/recorder.py:8934 ms2.6%
MigrationRecorder.has_tabledjango/db/migrations/recorder.py:6423 ms1.7%
BaseDatabaseIntrospection.table_namesdjango/db/backends/base/introspection.py:7023 ms1.7%
BaseDatabaseIntrospection.table_names.<locals>.get_namesdjango/db/backends/base/introspection.py:6323 ms1.7%
DatabaseIntrospection.get_table_listdjango/db/backends/postgresql/introspection.py:6723 ms1.7%
CursorWrapper.executedjango/db/backends/utils.py:7923 ms1.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9223 ms1.7%
CursorWrapper._executedjango/db/backends/utils.py:10321 ms1.6%
Cursor.executepsycopg/cursor.py:11321 ms1.6%
Connection.waitpsycopg/connection.py:49521 ms1.6%
MigrationRecorder.has_tabledjango/db/migrations/recorder.py:6312 ms0.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2612 ms0.9%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:32012 ms0.9%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:29612 ms0.9%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30412 ms0.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2612 ms0.9%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27912 ms0.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2612 ms0.9%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25612 ms0.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2612 ms0.9%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34512 ms0.9%
Connection.connectpsycopg/connection.py:10912 ms0.9%
1 smaller frames hidden
MigrationLoader.build_graphdjango/db/migrations/loader.py:2828 ms0.6%
3 smaller frames hidden
TestLegacyConferenceDataMigration.test_copies_overlapping_legacy_rows_without_clobbering_existing_dataconfs/tests.py:44324 ms1.8%
TestLegacyConferenceDataMigration._migrateconfs/tests.py:430 executor = MigrationExecutor(connection)8 ms0.6%
__init____init__:-18 ms0.6%
MigrationExecutor.__init__django/db/migrations/executor.py:188 ms0.6%
__init____init__:-18 ms0.6%
MigrationLoader.__init__django/db/migrations/loader.py:598 ms0.6%
TestLegacyConferenceDataMigration._migrateconfs/tests.py:432 executor.migrate(targets)8 ms0.6%
TestLegacyConferenceDataMigration._migrateconfs/tests.py:431 executor.loader.build_graph()7 ms0.5%
TestLegacyConferenceDataMigration.test_copies_overlapping_legacy_rows_without_clobbering_existing_dataconfs/tests.py:43617 ms1.3%
TestLegacyConferenceDataMigration._targets_withconfs/tests.py:41817 ms1.3%
TestLegacyConferenceDataMigration._leaf_targetsconfs/tests.py:412 executor = MigrationExecutor(connection)17 ms1.3%
__init____init__:-117 ms1.3%
MigrationExecutor.__init__django/db/migrations/executor.py:1817 ms1.3%
__init____init__:-117 ms1.3%
MigrationLoader.__init__django/db/migrations/loader.py:5917 ms1.3%
MigrationLoader.build_graphdjango/db/migrations/loader.py:2888 ms0.6%
3 smaller frames hidden
TestLegacyConferenceDataMigration.test_copies_overlapping_legacy_rows_without_clobbering_existing_dataconfs/tests.py:44117 ms1.3%
Estimated from 1,102 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
|
718 ms |
|
confs/tests.py:412
executor = MigrationExecutor(connection)
TestLegacyConferenceDataMigration._leaf_targets
· Migrations
|
84 ms |
|
confs/tests.py:430
executor = MigrationExecutor(connection)
TestLegacyConferenceDataMigration._migrate
· Migrations
|
38 ms |
|
confs/tests.py:431
executor.loader.build_graph()
TestLegacyConferenceDataMigration._migrate
· Migrations
|
37 ms |
|
confs/tests.py:486
.apps
TestLegacyConferenceDataMigration._seed_overlapping_legacy_data
· Migrations
|
23 ms |
|
confs/tests.py:484
MigrationExecutor(connection)
TestLegacyConferenceDataMigration._seed_overlapping_legacy_data
· Migrations
|
19 ms |
|
confs/migrations/0033_remove_legacy_conference_tables.py:562
conference_model.objects.filter(slug__in=LEGACY_SLUGS).delete()
unmigrate_legacy_conferences
· Migrations
|
12 ms |
|
confs/migrations/0033_remove_legacy_conference_tables.py:279
post_model.objects.bulk_create(to_create, ignore_conflicts=True, batch_size=IN_CHUNK_SIZE)
_resolve_posts
· Migrations
|
8 ms |
|
confs/tests.py:496
unrelated_account = baker.make(
TestLegacyConferenceDataMigration._seed_overlapping_legacy_data
· Database
|
7 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
|
7 ms |
Fixtures
Exact setup time| _django_setup_unittest class | 0.23 ms |
| _unittest_setUpClass_fixture_TestLegacyConferenceDataMigration class | 0.11 ms |
| _django_db_marker function | 0.07 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_isolate_apps function | 0.03 ms |
| _live_server_helper function | 0.03 ms |
| _django_set_urlconf function | 0.03 ms |
| _django_clear_site_cache function | 0.02 ms |
| _dj_autoclear_mailbox function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
293 queries · 511 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.06 s |
|
call _post_teardown
django/test/testcases.py:1243
|
241 ms |
| call pytest internals | 2 ms |
Reliability
5 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 5 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 6 hours ago | CI github-actions:test | passed | 1.31 s | Profile |
| 6 hours ago | CI github-actions:test | passed | 2.90 s | Profile |
| 7 hours ago | CI github-actions:test | passed | 2.42 s | Profile |
| 11 hours ago | CI github-actions:test | passed | 2.60 s | Profile |
| 12 hours ago | CI github-actions:test | passed | 1.53 s | Run |