Tests / confs/tests.py
TestLegacyConferenceDataMigration::test_drops_legacy_tables_when_uniques_are_mysql_style_indexes
First seen 1 month, 1 week ago in 0c23747
CI
github-actions:test
13 runs
Average
1.08 s
median 939 ms
max 2.05 s
max 2.05 s
Phases
Setup 2 ms
Call 1.07 s
Teardown 8 ms
Categories
Migrations 665 ms
Database 82 ms
Test code 0.84 ms
Other (DB schema, Imports, Libraries, pytest, ...) 328 ms
229 database queries per run
Needs 320 KB of memory (max 1 MB)
Duration per run
Where the time goes
Latest run in ci:github-actions:test, 2 weeks ago ·
open run
setup0.81 ms0.1%
call682 ms99.8%
TestLegacyConferenceDataMigration.test_drops_legacy_tables_when_uniques_are_mysql_style_indexesconfs/tests.py:450238 ms34.9%
TestLegacyConferenceDataMigration._migrateconfs/tests.py:432 executor.migrate(targets)212 ms31.0%
MigrationExecutor.migratedjango/db/migrations/executor.py:143209 ms30.6%
MigrationExecutor._migrate_all_backwardsdjango/db/migrations/executor.py:221146 ms21.3%
MigrationExecutor.unapply_migrationdjango/db/migrations/executor.py:28780 ms11.7%
Migration.unapplydjango/db/migrations/migration.py:19352 ms7.6%
SeparateDatabaseAndState.database_backwardsdjango/db/migrations/operations/special.py:5848 ms7.1%
DeleteModel.database_backwardsdjango/db/migrations/operations/models.py:40448 ms7.1%
BaseDatabaseSchemaEditor.create_modeldjango/db/backends/base/schema.py:52448 ms7.1%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4548 ms7.1%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21148 ms7.1%
CursorWrapper.executedjango/db/backends/utils.py:7948 ms7.1%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9248 ms7.1%
CursorWrapper._executedjango/db/backends/utils.py:10347 ms6.9%
Cursor.executepsycopg/cursor.py:11347 ms6.9%
Connection.waitpsycopg/connection.py:49547 ms6.9%
2 smaller frames hidden
Migration.unapplydjango/db/migrations/migration.py:16627 ms3.9%
SeparateDatabaseAndState.state_forwardsdjango/db/migrations/operations/special.py:3127 ms3.9%
AlterTogetherOptionOperation.state_forwardsdjango/db/migrations/operations/models.py:65713 ms1.9%
ProjectState.alter_model_optionsdjango/db/migrations/state.py:19013 ms1.9%
ProjectState.reload_modeldjango/db/migrations/state.py:42611 ms1.7%
ProjectState._reloaddjango/db/migrations/state.py:46111 ms1.7%
StateApps.render_multipledjango/db/migrations/state.py:69111 ms1.7%
ModelState.renderdjango/db/migrations/state.py:9896 ms0.9%
ModelState.renderdjango/db/migrations/state.py:9825 ms0.7%
Field.clonedjango/db/models/fields/__init__.py:7135 ms0.7%
URLField.__init__django/db/models/fields/__init__.py:27265 ms0.7%
CharField.__init__django/db/models/fields/__init__.py:12525 ms0.7%
BaseValidator.__init__django/core/validators.py:3845 ms0.7%
<GC>~5 ms0.7%
1 smaller frames hidden
RemoveIndex.state_forwardsdjango/db/migrations/operations/models.py:9618 ms1.1%
ProjectState.remove_indexdjango/db/migrations/state.py:2298 ms1.1%
ProjectState._remove_optiondjango/db/migrations/state.py:2158 ms1.1%
ProjectState.reload_modeldjango/db/migrations/state.py:4265 ms0.7%
ProjectState._reloaddjango/db/migrations/state.py:4615 ms0.7%
StateApps.render_multipledjango/db/migrations/state.py:6915 ms0.7%
1 smaller frames hidden
RemoveConstraint.state_forwardsdjango/db/migrations/operations/models.py:12094 ms0.6%
ProjectState.remove_constraintdjango/db/migrations/state.py:2494 ms0.6%
ProjectState._remove_optiondjango/db/migrations/state.py:2154 ms0.6%
ProjectState.reload_modeldjango/db/migrations/state.py:4264 ms0.6%
ProjectState._reloaddjango/db/migrations/state.py:4614 ms0.6%
StateApps.render_multipledjango/db/migrations/state.py:6914 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
MigrationExecutor.unapply_migrationdjango/db/migrations/executor.py:28461 ms8.9%
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:17634 ms5.0%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4534 ms5.0%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21134 ms5.0%
CursorWrapper.executedjango/db/backends/utils.py:7934 ms5.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9234 ms5.0%
CursorWrapper._executedjango/db/backends/utils.py:10334 ms5.0%
Cursor.executepsycopg/cursor.py:11334 ms5.0%
Connection.waitpsycopg/connection.py:49534 ms5.0%
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:17827 ms3.9%
Atomic.__exit__django/db/transaction.py:27527 ms3.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2627 ms3.9%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:32727 ms3.9%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:30327 ms3.9%
Connection.commitpsycopg/connection.py:30927 ms3.9%
Connection.waitpsycopg/connection.py:49527 ms3.9%
MigrationExecutor.unapply_migrationdjango/db/migrations/executor.py:2885 ms0.7%
MigrationExecutor.record_migrationdjango/db/migrations/executor.py:2775 ms0.7%
MigrationRecorder.record_unapplieddjango/db/migrations/recorder.py:1075 ms0.7%
QuerySet.deletedjango/db/models/query.py:13575 ms0.7%
Collector.deletedjango/db/models/deletion.py:4894 ms0.6%
Atomic.__exit__django/db/transaction.py:2754 ms0.6%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:264 ms0.6%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:3274 ms0.6%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:3034 ms0.6%
Connection.commitpsycopg/connection.py:3094 ms0.6%
Connection.waitpsycopg/connection.py:4954 ms0.6%
1 smaller frames hidden
MigrationExecutor._migrate_all_backwardsdjango/db/migrations/executor.py:21628 ms4.1%
Migration.mutate_statedjango/db/migrations/migration.py:9128 ms4.1%
AlterField.state_forwardsdjango/db/migrations/operations/fields.py:22710 ms1.5%
ProjectState.alter_fielddjango/db/migrations/state.py:3058 ms1.1%
ProjectState.reload_modeldjango/db/migrations/state.py:4268 ms1.1%
ProjectState._reloaddjango/db/migrations/state.py:4618 ms1.1%
StateApps.render_multipledjango/db/migrations/state.py:6918 ms1.1%
ModelState.renderdjango/db/migrations/state.py:9895 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
CreateModel.state_forwardsdjango/db/migrations/operations/models.py:8610 ms1.5%
ProjectState.add_modeldjango/db/migrations/state.py:12610 ms1.5%
ProjectState.reload_modeldjango/db/migrations/state.py:42610 ms1.5%
ProjectState._reloaddjango/db/migrations/state.py:46110 ms1.5%
StateApps.render_multipledjango/db/migrations/state.py:69110 ms1.5%
ModelState.renderdjango/db/migrations/state.py:9896 ms0.9%
ModelState.renderdjango/db/migrations/state.py:9824 ms0.6%
AlterTogetherOptionOperation.state_forwardsdjango/db/migrations/operations/models.py:6575 ms0.7%
ProjectState.alter_model_optionsdjango/db/migrations/state.py:1905 ms0.7%
ProjectState.reload_modeldjango/db/migrations/state.py:4265 ms0.7%
ProjectState._reloaddjango/db/migrations/state.py:4615 ms0.7%
StateApps.render_multipledjango/db/migrations/state.py:6915 ms0.7%
2 smaller frames hidden
MigrationExecutor._migrate_all_backwardsdjango/db/migrations/executor.py:21024 ms3.5%
Migration.mutate_statedjango/db/migrations/migration.py:9123 ms3.3%
SeparateDatabaseAndState.state_forwardsdjango/db/migrations/operations/special.py:3123 ms3.3%
AlterTogetherOptionOperation.state_forwardsdjango/db/migrations/operations/models.py:65713 ms1.9%
ProjectState.alter_model_optionsdjango/db/migrations/state.py:19013 ms1.9%
ProjectState.reload_modeldjango/db/migrations/state.py:42613 ms1.9%
ProjectState._reloaddjango/db/migrations/state.py:46111 ms1.7%
StateApps.render_multipledjango/db/migrations/state.py:69111 ms1.7%
ModelState.renderdjango/db/migrations/state.py:9896 ms0.9%
ModelBase.__new__django/db/models/base.py:3884 ms0.6%
ModelBase._preparedjango/db/models/base.py:4254 ms0.6%
cached_property.__get__django/utils/functional.py:474 ms0.6%
Options.fieldsdjango/db/models/options.py:5664 ms0.6%
Options._get_fieldsdjango/db/models/options.py:8814 ms0.6%
<GC>~4 ms0.6%
2 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:9825 ms0.7%
Field.clonedjango/db/models/fields/__init__.py:7134 ms0.6%
1 smaller frames hidden
RemoveConstraint.state_forwardsdjango/db/migrations/operations/models.py:12099 ms1.3%
ProjectState.remove_constraintdjango/db/migrations/state.py:2499 ms1.3%
ProjectState._remove_optiondjango/db/migrations/state.py:2159 ms1.3%
ProjectState.reload_modeldjango/db/migrations/state.py:4269 ms1.3%
ProjectState._reloaddjango/db/migrations/state.py:4618 ms1.1%
StateApps.render_multipledjango/db/migrations/state.py:6918 ms1.1%
ModelState.renderdjango/db/migrations/state.py:9895 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
1 smaller frames hidden
MigrationExecutor._migrate_all_backwardsdjango/db/migrations/executor.py:20610 ms1.5%
cached_property.__get__django/utils/functional.py:4710 ms1.5%
ProjectState.appsdjango/db/migrations/state.py:59210 ms1.5%
__init____init__:-110 ms1.5%
StateApps.__init__django/db/migrations/state.py:65310 ms1.5%
StateApps.render_multipledjango/db/migrations/state.py:69110 ms1.5%
ModelState.renderdjango/db/migrations/state.py:9825 ms0.7%
Field.clonedjango/db/models/fields/__init__.py:7134 ms0.6%
1 smaller frames hidden
ModelState.renderdjango/db/migrations/state.py:9895 ms0.7%
ModelBase.__new__django/db/models/base.py:2145 ms0.7%
ModelBase.add_to_classdjango/db/models/base.py:3945 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
TestLegacyConferenceDataMigration._migrateconfs/tests.py:430 executor = MigrationExecutor(connection)19 ms2.8%
__init____init__:-119 ms2.8%
MigrationExecutor.__init__django/db/migrations/executor.py:1819 ms2.8%
__init____init__:-119 ms2.8%
MigrationLoader.__init__django/db/migrations/loader.py:5919 ms2.8%
MigrationLoader.build_graphdjango/db/migrations/loader.py:28818 ms2.6%
MigrationRecorder.applied_migrationsdjango/db/migrations/recorder.py:8916 ms2.4%
MigrationRecorder.has_tabledjango/db/migrations/recorder.py:6416 ms2.4%
BaseDatabaseIntrospection.table_namesdjango/db/backends/base/introspection.py:7016 ms2.4%
BaseDatabaseIntrospection.table_names.<locals>.get_namesdjango/db/backends/base/introspection.py:6316 ms2.4%
DatabaseIntrospection.get_table_listdjango/db/backends/postgresql/introspection.py:6716 ms2.4%
CursorWrapper.executedjango/db/backends/utils.py:7916 ms2.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9216 ms2.4%
CursorWrapper._executedjango/db/backends/utils.py:10316 ms2.4%
Cursor.executepsycopg/cursor.py:11316 ms2.4%
Connection.waitpsycopg/connection.py:49516 ms2.4%
BaseCursor._execute_genpsycopg/_cursor_base.py:20616 ms2.4%
BaseCursor._maybe_prepare_genpsycopg/_cursor_base.py:28616 ms2.4%
ClientCursorMixin._execute_sendpsycopg/client_cursor.py:7816 ms2.4%
1 smaller frames hidden
1 smaller frames hidden
TestLegacyConferenceDataMigration._migrateconfs/tests.py:431 executor.loader.build_graph()6 ms0.9%
MigrationLoader.build_graphdjango/db/migrations/loader.py:2884 ms0.6%
MigrationRecorder.applied_migrationsdjango/db/migrations/recorder.py:894 ms0.6%
MigrationRecorder.has_tabledjango/db/migrations/recorder.py:644 ms0.6%
BaseDatabaseIntrospection.table_namesdjango/db/backends/base/introspection.py:704 ms0.6%
BaseDatabaseIntrospection.table_names.<locals>.get_namesdjango/db/backends/base/introspection.py:634 ms0.6%
DatabaseIntrospection.get_table_listdjango/db/backends/postgresql/introspection.py:674 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:794 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms0.6%
Cursor.executepsycopg/cursor.py:1134 ms0.6%
Connection.waitpsycopg/connection.py:4954 ms0.6%
2 smaller frames hidden
TransactionTestCase._post_teardowndjango/test/testcases.py:1243 self._fixture_teardown()161 ms23.6%
TransactionTestCase._fixture_teardowndjango/test/testcases.py:1278161 ms23.6%
call_commanddjango/core/management/__init__.py:195161 ms23.6%
BaseCommand.executedjango/core/management/base.py:466161 ms23.6%
Command.handledjango/core/management/commands/flush.py:71110 ms16.1%
BaseDatabaseOperations.execute_sql_flushdjango/db/backends/base/operations.py:493100 ms14.7%
CursorWrapper.executedjango/db/backends/utils.py:79100 ms14.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:92100 ms14.7%
CursorWrapper._executedjango/db/backends/utils.py:103100 ms14.7%
Cursor.executepsycopg/cursor.py:113100 ms14.7%
Connection.waitpsycopg/connection.py:495100 ms14.7%
BaseDatabaseOperations.execute_sql_flushdjango/db/backends/base/operations.py:48710 ms1.5%
Atomic.__exit__django/db/transaction.py:27510 ms1.5%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2610 ms1.5%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:32710 ms1.5%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:30310 ms1.5%
Connection.commitpsycopg/connection.py:30910 ms1.5%
Connection.waitpsycopg/connection.py:49510 ms1.5%
Command.handledjango/core/management/commands/flush.py:8948 ms7.1%
emit_post_migrate_signaldjango/core/management/sql.py:5248 ms7.1%
Signal.senddjango/dispatch/dispatcher.py:24948 ms7.1%
create_permissionsdjango/contrib/auth/management/__init__.py:10824 ms3.5%
QuerySet.bulk_createdjango/db/models/query.py:90020 ms3.0%
QuerySet._batched_insertdjango/db/models/query.py:217920 ms3.0%
QuerySet._insertdjango/db/models/query.py:214120 ms3.0%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:193620 ms3.0%
CursorWrapper.executedjango/db/backends/utils.py:7920 ms3.0%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9220 ms3.0%
CursorWrapper._executedjango/db/backends/utils.py:10520 ms3.0%
Cursor.executepsycopg/cursor.py:11320 ms3.0%
Connection.waitpsycopg/connection.py:49520 ms3.0%
2 smaller frames hidden
create_permissionsdjango/contrib/auth/management/__init__.py:6210 ms1.5%
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:1405 ms0.7%
QuerySet.bulk_createdjango/db/models/query.py:9005 ms0.7%
QuerySet._batched_insertdjango/db/models/query.py:21795 ms0.7%
QuerySet._insertdjango/db/models/query.py:21415 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19365 ms0.7%
CursorWrapper.executedjango/db/backends/utils.py:795 ms0.7%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:925 ms0.7%
CursorWrapper._executedjango/db/backends/utils.py:1055 ms0.7%
Cursor.executepsycopg/cursor.py:1135 ms0.7%
Connection.waitpsycopg/connection.py:4955 ms0.7%
create_contenttypesdjango/contrib/contenttypes/management/__init__.py:1304 ms0.6%
QuerySet.__iter__django/db/models/query.py:4394 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:22624 ms0.6%
FlatValuesListIterable.__iter__django/db/models/query.py:3024 ms0.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15744 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:794 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms0.6%
Cursor.executepsycopg/cursor.py:1134 ms0.6%
Connection.waitpsycopg/connection.py:4954 ms0.6%
1 smaller frames hidden
create_permissionsdjango/contrib/auth/management/__init__.py:815 ms0.7%
create_permissionsdjango/contrib/auth/management/__init__.py:884 ms0.6%
QuerySet.__iter__django/db/models/query.py:4394 ms0.6%
QuerySet._fetch_alldjango/db/models/query.py:22624 ms0.6%
ValuesListIterable.__iter__django/db/models/query.py:2634 ms0.6%
SQLCompiler.results_iterdjango/db/models/sql/compiler.py:15744 ms0.6%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:794 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms0.6%
Cursor.executepsycopg/cursor.py:1134 ms0.6%
Connection.waitpsycopg/connection.py:4954 ms0.6%
2 smaller frames hidden
1 smaller frames hidden
TestLegacyConferenceDataMigration.test_drops_legacy_tables_when_uniques_are_mysql_style_indexesconfs/tests.py:452 self._migrate(latest)147 ms21.5%
TestLegacyConferenceDataMigration._migrateconfs/tests.py:432 executor.migrate(targets)126 ms18.4%
MigrationExecutor.migratedjango/db/migrations/executor.py:137119 ms17.4%
MigrationExecutor._migrate_all_forwardsdjango/db/migrations/executor.py:169110 ms16.1%
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:257104 ms15.2%
Migration.applydjango/db/migrations/migration.py:13285 ms12.4%
SeparateDatabaseAndState.database_forwardsdjango/db/migrations/operations/special.py:3949 ms7.2%
DeleteModel.database_forwardsdjango/db/migrations/operations/models.py:39949 ms7.2%
BaseDatabaseSchemaEditor.delete_modeldjango/db/backends/base/schema.py:55949 ms7.2%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:4849 ms7.2%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:21149 ms7.2%
CursorWrapper.executedjango/db/backends/utils.py:7949 ms7.2%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9249 ms7.2%
CursorWrapper._executedjango/db/backends/utils.py:10349 ms7.2%
Cursor.executepsycopg/cursor.py:11349 ms7.2%
Connection.waitpsycopg/connection.py:49549 ms7.2%
RunPython.database_forwardsdjango/db/migrations/operations/special.py:20327 ms3.9%
migrate_legacy_conferencesconfs/migrations/0033_remove_legacy_conference_tables.py:55514 ms2.0%
migrate_legacy_pairconfs/migrations/0033_remove_legacy_conference_tables.py:398 legacy_accounts = list(account_model.objects.all())5 ms0.7%
QuerySet.__iter__django/db/models/query.py:4395 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:22625 ms0.7%
ModelIterable.__iter__django/db/models/query.py:1035 ms0.7%
SQLCompiler.execute_sqldjango/db/models/sql/compiler.py:16254 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:794 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms0.6%
Cursor.executepsycopg/cursor.py:1134 ms0.6%
Connection.waitpsycopg/connection.py:4954 ms0.6%
1 smaller frames hidden
migrate_legacy_pairconfs/migrations/0033_remove_legacy_conference_tables.py:4075 ms0.7%
_pk_batchesconfs/migrations/0033_remove_legacy_conference_tables.py:214 rows = list(model.objects.filter(pk__gt=last_pk).order_by("pk")[:batch_size])5 ms0.7%
QuerySet.__iter__django/db/models/query.py:4395 ms0.7%
QuerySet._fetch_alldjango/db/models/query.py:22625 ms0.7%
ModelIterable.__iter__django/db/models/query.py:1035 ms0.7%
migrate_legacy_pairconfs/migrations/0033_remove_legacy_conference_tables.py:4194 ms0.6%
migrate_legacy_conferencesconfs/migrations/0033_remove_legacy_conference_tables.py:5508 ms1.1%
_get_or_create_conferenceconfs/migrations/0033_remove_legacy_conference_tables.py:388 conference, _created = conference_model.objects.get_or_create(slug=spec["slug"], defaults=defaults)8 ms1.1%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:878 ms1.1%
QuerySet.get_or_createdjango/db/models/query.py:10615 ms0.7%
QuerySet.createdjango/db/models/query.py:7365 ms0.7%
Model.savedjango/db/models/base.py:9045 ms0.7%
Model.save_basedjango/db/models/base.py:9965 ms0.7%
Model._save_tabledjango/db/models/base.py:11995 ms0.7%
Model._do_insertdjango/db/models/base.py:12515 ms0.7%
BaseManager._get_queryset_methods.<locals>.create_method.<locals>.manager_methoddjango/db/models/manager.py:875 ms0.7%
QuerySet._insertdjango/db/models/query.py:21415 ms0.7%
SQLInsertCompiler.execute_sqldjango/db/models/sql/compiler.py:19364 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:794 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1054 ms0.6%
Cursor.executepsycopg/cursor.py:1134 ms0.6%
Connection.waitpsycopg/connection.py:4954 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
migrate_legacy_conferencesconfs/migrations/0033_remove_legacy_conference_tables.py:5515 ms0.7%
DeleteModel.database_forwardsdjango/db/migrations/operations/models.py:3996 ms0.9%
BaseDatabaseSchemaEditor.delete_modeldjango/db/backends/base/schema.py:5596 ms0.9%
DatabaseSchemaEditor.executedjango/db/backends/postgresql/schema.py:486 ms0.9%
BaseDatabaseSchemaEditor.executedjango/db/backends/base/schema.py:2116 ms0.9%
CursorWrapper.executedjango/db/backends/utils.py:796 ms0.9%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:926 ms0.9%
CursorWrapper._executedjango/db/backends/utils.py:1036 ms0.9%
Cursor.executepsycopg/cursor.py:1136 ms0.9%
Connection.waitpsycopg/connection.py:4956 ms0.9%
1 smaller frames hidden
Migration.applydjango/db/migrations/migration.py:11819 ms2.8%
SeparateDatabaseAndState.state_forwardsdjango/db/migrations/operations/special.py:3119 ms2.8%
RemoveConstraint.state_forwardsdjango/db/migrations/operations/models.py:120911 ms1.7%
ProjectState.remove_constraintdjango/db/migrations/state.py:24911 ms1.7%
ProjectState._remove_optiondjango/db/migrations/state.py:21511 ms1.7%
ProjectState.reload_modeldjango/db/migrations/state.py:42610 ms1.5%
ProjectState._reloaddjango/db/migrations/state.py:46110 ms1.5%
StateApps.render_multipledjango/db/migrations/state.py:69110 ms1.5%
ModelState.renderdjango/db/migrations/state.py:9825 ms0.7%
ModelState.renderdjango/db/migrations/state.py:9895 ms0.7%
ModelBase.__new__django/db/models/base.py:2144 ms0.6%
ModelBase.add_to_classdjango/db/models/base.py:3944 ms0.6%
Field.contribute_to_classdjango/db/models/fields/__init__.py:9944 ms0.6%
1 smaller frames hidden
1 smaller frames hidden
RemoveIndex.state_forwardsdjango/db/migrations/operations/models.py:9614 ms0.6%
ProjectState.remove_indexdjango/db/migrations/state.py:2294 ms0.6%
ProjectState._remove_optiondjango/db/migrations/state.py:2154 ms0.6%
2 smaller frames hidden
MigrationExecutor.apply_migrationdjango/db/migrations/executor.py:2546 ms0.9%
BaseDatabaseSchemaEditor.__exit__django/db/backends/base/schema.py:1786 ms0.9%
Atomic.__exit__django/db/transaction.py:2756 ms0.9%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:266 ms0.9%
BaseDatabaseWrapper.commitdjango/db/backends/base/base.py:3276 ms0.9%
BaseDatabaseWrapper._commitdjango/db/backends/base/base.py:3036 ms0.9%
Connection.commitpsycopg/connection.py:3096 ms0.9%
Connection.waitpsycopg/connection.py:4956 ms0.9%
MigrationExecutor._migrate_all_forwardsdjango/db/migrations/executor.py:1669 ms1.3%
cached_property.__get__django/utils/functional.py:479 ms1.3%
ProjectState.appsdjango/db/migrations/state.py:5929 ms1.3%
__init____init__:-19 ms1.3%
StateApps.__init__django/db/migrations/state.py:6539 ms1.3%
StateApps.render_multipledjango/db/migrations/state.py:6919 ms1.3%
ModelState.renderdjango/db/migrations/state.py:9895 ms0.7%
ModelState.renderdjango/db/migrations/state.py:9824 ms0.6%
4 smaller frames hidden
TestLegacyConferenceDataMigration._migrateconfs/tests.py:431 executor.loader.build_graph()22 ms3.2%
MigrationLoader.build_graphdjango/db/migrations/loader.py:28216 ms2.4%
MigrationLoader.load_diskdjango/db/migrations/loader.py:13615 ms2.2%
Migration.__init__django/db/migrations/migration.py:6115 ms2.2%
<GC>~15 ms2.2%
1 smaller frames hidden
MigrationLoader.build_graphdjango/db/migrations/loader.py:2884 ms0.6%
1 smaller frames hidden
TestLegacyConferenceDataMigration.test_drops_legacy_tables_when_uniques_are_mysql_style_indexesconfs/tests.py:45165 ms9.5%
TestLegacyConferenceDataMigration._replace_unique_constraints_with_mysql_style_indexesconfs/tests.py:472 constraints = connection.introspection.get_constraints(cursor, table)28 ms4.1%
DatabaseIntrospection.get_constraintsdjango/db/backends/postgresql/introspection.py:25119 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:7919 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9219 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:10519 ms2.8%
Cursor.executepsycopg/cursor.py:11319 ms2.8%
Connection.waitpsycopg/connection.py:49519 ms2.8%
DatabaseIntrospection.get_constraintsdjango/db/backends/postgresql/introspection.py:2149 ms1.3%
CursorWrapper.executedjango/db/backends/utils.py:799 ms1.3%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:929 ms1.3%
CursorWrapper._executedjango/db/backends/utils.py:1059 ms1.3%
Cursor.executepsycopg/cursor.py:1139 ms1.3%
Connection.waitpsycopg/connection.py:4959 ms1.3%
TestLegacyConferenceDataMigration._replace_unique_constraints_with_mysql_style_indexesconfs/tests.py:476 cursor.execute(f"ALTER TABLE {quote(table)} DROP CONSTRAINT IF EXISTS {quote(name)}")19 ms2.8%
CursorWrapper.executedjango/db/backends/utils.py:7919 ms2.8%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9219 ms2.8%
CursorWrapper._executedjango/db/backends/utils.py:10319 ms2.8%
Cursor.executepsycopg/cursor.py:11319 ms2.8%
Connection.waitpsycopg/connection.py:49519 ms2.8%
TestLegacyConferenceDataMigration._replace_unique_constraints_with_mysql_style_indexesconfs/tests.py:480 cursor.execute(f"CREATE UNIQUE INDEX {quote(index_name)} ON {quote(table)} ({columns})")18 ms2.6%
CursorWrapper.executedjango/db/backends/utils.py:7918 ms2.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9218 ms2.6%
CursorWrapper._executedjango/db/backends/utils.py:10318 ms2.6%
Cursor.executepsycopg/cursor.py:11318 ms2.6%
Connection.waitpsycopg/connection.py:49518 ms2.6%
TestLegacyConferenceDataMigration.test_drops_legacy_tables_when_uniques_are_mysql_style_indexesconfs/tests.py:44738 ms5.6%
TestLegacyConferenceDataMigration._leaf_targetsconfs/tests.py:412 executor = MigrationExecutor(connection)38 ms5.6%
__init____init__:-138 ms5.6%
MigrationExecutor.__init__django/db/migrations/executor.py:1838 ms5.6%
__init____init__:-138 ms5.6%
MigrationLoader.__init__django/db/migrations/loader.py:5938 ms5.6%
MigrationLoader.build_graphdjango/db/migrations/loader.py:28830 ms4.5%
MigrationRecorder.applied_migrationsdjango/db/migrations/recorder.py:8928 ms4.1%
MigrationRecorder.has_tabledjango/db/migrations/recorder.py:6416 ms2.4%
BaseDatabaseIntrospection.table_namesdjango/db/backends/base/introspection.py:7016 ms2.4%
BaseDatabaseIntrospection.table_names.<locals>.get_namesdjango/db/backends/base/introspection.py:6316 ms2.4%
DatabaseIntrospection.get_table_listdjango/db/backends/postgresql/introspection.py:6716 ms2.4%
CursorWrapper.executedjango/db/backends/utils.py:7916 ms2.4%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:9216 ms2.4%
CursorWrapper._executedjango/db/backends/utils.py:10316 ms2.4%
Cursor.executepsycopg/cursor.py:11316 ms2.4%
Connection.waitpsycopg/connection.py:49516 ms2.4%
MigrationRecorder.has_tabledjango/db/migrations/recorder.py:6311 ms1.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms1.7%
BaseDatabaseWrapper.cursordjango/db/backends/base/base.py:32011 ms1.7%
BaseDatabaseWrapper._cursordjango/db/backends/base/base.py:29611 ms1.7%
SimpleTestCase.ensure_connection_patch_method.<locals>.patched_ensure_connectiondjango/test/testcases.py:30411 ms1.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms1.7%
BaseDatabaseWrapper.ensure_connectiondjango/db/backends/base/base.py:27911 ms1.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms1.7%
BaseDatabaseWrapper.connectdjango/db/backends/base/base.py:25611 ms1.7%
DatabaseWrapper.get_new_connectionfedidevs/db/postgresql/base.py:39 return super().get_new_connection(conn_params)11 ms1.7%
async_unsafe.<locals>.decorator.<locals>.innerdjango/utils/asyncio.py:2611 ms1.7%
DatabaseWrapper.get_new_connectiondjango/db/backends/postgresql/base.py:34511 ms1.7%
Connection.connectpsycopg/connection.py:10910 ms1.5%
wait_connpsycopg/waiting.py:1415 ms0.7%
EpollSelector.select<stdlib>/selectors.py:4525 ms0.7%
wait_connpsycopg/waiting.py:1455 ms0.7%
BaseConnection._connect_genpsycopg/_connection_base.py:4395 ms0.7%
1 smaller frames hidden
1 smaller frames hidden
MigrationLoader.build_graphdjango/db/migrations/loader.py:2825 ms0.7%
MigrationLoader.load_diskdjango/db/migrations/loader.py:1105 ms0.7%
reload<stdlib>/importlib/__init__.py:1265 ms0.7%
_find_spec<frozen importlib._bootstrap>:11645 ms0.7%
PathFinder.find_spec<frozen importlib._bootstrap_external>:12744 ms0.6%
PathFinder._get_spec<frozen importlib._bootstrap_external>:12484 ms0.6%
FileFinder.find_spec<frozen importlib._bootstrap_external>:13834 ms0.6%
_path_isfile<frozen importlib._bootstrap_external>:1664 ms0.6%
_path_is_mode_type<frozen importlib._bootstrap_external>:1584 ms0.6%
_path_stat<frozen importlib._bootstrap_external>:1524 ms0.6%
1 smaller frames hidden
2 smaller frames hidden
TestLegacyConferenceDataMigration.test_drops_legacy_tables_when_uniques_are_mysql_style_indexesconfs/tests.py:45824 ms3.5%
TestLegacyConferenceDataMigration._migrateconfs/tests.py:431 executor.loader.build_graph()18 ms2.6%
MigrationLoader.build_graphdjango/db/migrations/loader.py:28213 ms1.9%
MigrationLoader.load_diskdjango/db/migrations/loader.py:13610 ms1.5%
Migration.__init__django/db/migrations/migration.py:5910 ms1.5%
<GC>~10 ms1.5%
1 smaller frames hidden
MigrationLoader.build_graphdjango/db/migrations/loader.py:2885 ms0.7%
MigrationRecorder.applied_migrationsdjango/db/migrations/recorder.py:894 ms0.6%
MigrationRecorder.has_tabledjango/db/migrations/recorder.py:644 ms0.6%
BaseDatabaseIntrospection.table_namesdjango/db/backends/base/introspection.py:704 ms0.6%
BaseDatabaseIntrospection.table_names.<locals>.get_namesdjango/db/backends/base/introspection.py:634 ms0.6%
DatabaseIntrospection.get_table_listdjango/db/backends/postgresql/introspection.py:674 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:794 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms0.6%
Cursor.executepsycopg/cursor.py:1134 ms0.6%
Connection.waitpsycopg/connection.py:4954 ms0.6%
TestLegacyConferenceDataMigration._migrateconfs/tests.py:432 executor.migrate(targets)6 ms0.9%
MigrationExecutor.migratedjango/db/migrations/executor.py:1094 ms0.6%
MigrationRecorder.ensure_schemadjango/db/migrations/recorder.py:734 ms0.6%
MigrationRecorder.has_tabledjango/db/migrations/recorder.py:644 ms0.6%
BaseDatabaseIntrospection.table_namesdjango/db/backends/base/introspection.py:704 ms0.6%
BaseDatabaseIntrospection.table_names.<locals>.get_namesdjango/db/backends/base/introspection.py:634 ms0.6%
DatabaseIntrospection.get_table_listdjango/db/backends/postgresql/introspection.py:674 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:794 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms0.6%
Cursor.executepsycopg/cursor.py:1134 ms0.6%
Connection.waitpsycopg/connection.py:4954 ms0.6%
2 smaller frames hidden
TestLegacyConferenceDataMigration.test_drops_legacy_tables_when_uniques_are_mysql_style_indexesconfs/tests.py:453 tables = set(connection.introspection.table_names())4 ms0.6%
BaseDatabaseIntrospection.table_namesdjango/db/backends/base/introspection.py:694 ms0.6%
BaseDatabaseIntrospection.table_names.<locals>.get_namesdjango/db/backends/base/introspection.py:634 ms0.6%
DatabaseIntrospection.get_table_listdjango/db/backends/postgresql/introspection.py:674 ms0.6%
CursorWrapper.executedjango/db/backends/utils.py:794 ms0.6%
CursorWrapper._execute_with_wrappersdjango/db/backends/utils.py:924 ms0.6%
CursorWrapper._executedjango/db/backends/utils.py:1034 ms0.6%
Cursor.executepsycopg/cursor.py:1134 ms0.6%
Connection.waitpsycopg/connection.py:4954 ms0.6%
2 smaller frames hidden
Estimated from 539 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
|
316 ms |
|
confs/tests.py:431
executor.loader.build_graph()
TestLegacyConferenceDataMigration._migrate
· Migrations
|
46 ms |
|
confs/tests.py:412
executor = MigrationExecutor(connection)
TestLegacyConferenceDataMigration._leaf_targets
· Migrations
|
29 ms |
|
confs/tests.py:472
constraints = connection.introspection.get_constraints(cursor, table)
TestLegacyConferenceDataMigration._replace_unique_constraints_with_mysql_style_indexes
· Database
|
28 ms |
|
confs/tests.py:476
cursor.execute(f"ALTER TABLE {quote(table)} DROP CONSTRAINT IF EXISTS {quote(name)}")
TestLegacyConferenceDataMigration._replace_unique_constraints_with_mysql_style_indexes
· Database
|
19 ms |
|
confs/tests.py:430
executor = MigrationExecutor(connection)
TestLegacyConferenceDataMigration._migrate
· Migrations
|
19 ms |
|
confs/tests.py:480
cursor.execute(f"CREATE UNIQUE INDEX {quote(index_name)} ON {quote(table)} ({columns})")
TestLegacyConferenceDataMigration._replace_unique_constraints_with_mysql_style_indexes
· Database
|
18 ms |
|
fedidevs/db/postgresql/base.py:39
return super().get_new_connection(conn_params)
DatabaseWrapper.get_new_connection
· Migrations
|
11 ms |
|
confs/migrations/0033_remove_legacy_conference_tables.py:388
conference, _created = conference_model.objects.get_or_create(slug=spec["slug"], defaults=defaults)
_get_or_create_conference
· Migrations
|
8 ms |
|
confs/migrations/0033_remove_legacy_conference_tables.py:398
legacy_accounts = list(account_model.objects.all())
migrate_legacy_pair
· Migrations
|
5 ms |
Fixtures
Exact setup time| _dj_autoclear_mailbox function | 0.05 ms |
| _django_set_urlconf function | 0.04 ms |
| _template_string_if_invalid_marker function | 0.03 ms |
| _django_db_marker function | 0.03 ms |
| _django_isolate_apps function | 0.02 ms |
| _live_server_helper function | 0.02 ms |
| _django_clear_site_cache function | 0.02 ms |
| monkeypatch function | 0.01 ms |
Database
228 queries · 353 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
13×
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)
11×
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:452
|
519 ms |
|
call _post_teardown
django/test/testcases.py:1243
|
162 ms |
| call pytest internals | 1 ms |
|
setup __init__
__init__:-1
|
0.81 ms |
Reliability
14 results · 0 CI failures · 0 local failuresThis test hasn't failed recently.
History
Latest 14 results, oldest first in the strip| When | Environment | Outcome | Duration | |
|---|---|---|---|---|
| 2 weeks ago | CI github-actions:test | passed | 683 ms | Profile |
| 2 weeks, 5 days ago | CI github-actions:test | passed | 848 ms | Profile |
| 2 weeks, 6 days ago | CI github-actions:test | passed | 831 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 555 ms | Profile |
| 3 weeks ago | CI github-actions:test | passed | 908 ms | Profile |
| 1 month ago | CI github-actions:test | passed | 1.00 s | Profile |
| 1 month ago | CI github-actions:test | passed | 1.05 s | Profile |
| 1 month ago | CI github-actions:test | passed | 1.13 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 939 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 760 ms | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 1.73 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 2.05 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 1.49 s | Profile |
| 1 month, 1 week ago | CI github-actions:test | passed | 1.19 s | Run |